object Main extends App {
	val n = scala.io.StdIn.readInt
	val s = scala.io.StdIn.readLine
	val k = scala.io.StdIn.readInt - 1

	val ans = new Array[Char](n)

	for(i<-0 until n){
		ans(i) = if(s(i) == s(k)) s(k)
			else '*'
	}

	println(ans.mkString)


}