import java.util.*
import java.math.*;
fun main(args: Array<String>) {

    val N = readLine()!!.split(" ").map{it.toInt()}[0]
    val S = readLine()!!
    val K = readLine()!!.split(" ").map{it.toInt()}[0]
    val ch = S[K-1]
    var ans = ""
    for (c in S) {
        if (c != ch) ans+="*"
        else ans+=c
    }
    println(ans)
}
