import scala.io.{StdIn => in}

object Main extends App {
  val n = in.readInt
  val s = in.readLine
  val k = in.readInt - 1
  val sk = s(k)
  val ans = s.map(ch => if(ch == sk) sk else '*')
  println(ans)
}