fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val s = readLine()!!
    val t = readLine()!!.toInt()

    val target = s[t-1]

    for (c in s){
        if(c==target) print(c) else print("*")
    }
}
