import scala.io.StdIn

object Main extends App {

  val n  = StdIn.readLine().toInt
  val s  = StdIn.readLine()
  val k  = StdIn.readLine().toInt    

  def solve(s: String, k: Int): String = {
    val f =  s(k -1)
    s.map(v => if(f != v) {"*"} else {v}).mkString

  }

  println(solve(s, k))
}
  


