object B extends App {
  val inputs: Seq[String] = io.Source.stdin.getLines().toList
  val N = inputs(0).toInt
  val K = inputs(1)
  val S = inputs(2).toInt

  println(solve(N, K, S))

  def solve(length: Int, word: String, index: Int): String = {
    val indexedString = word(index - 1)
    word.map(char => {
      if (char == indexedString) {
        char
      } else {
        "*"
      }
    }).mkString("")
  }
}
