fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val s = readLine()!!.toString()
    val k = readLine()!!.toInt()
    val correct = s[k - 1]
    val ans = CharArray(n)
    for (i in 0 until n) {
        if (s[i] != correct) ans[i] = '*'
        else ans[i] = s[i]
    }
    println(ans)
}
