import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val n = sc.nextInt
  val s = sc.next
  val k = sc.nextInt

  val target = s.charAt(k - 1)

  val res =
    s.foldLeft(""){case (str, c) =>
      str + (if(c == target) c else '*')
    }

  println(res)
}
