import java.util._
import java.lang._

object Main extends App {
  val sc = new Scanner(System.in)
  var n = sc.nextInt()
  var s = sc.next()
  var k = sc.nextInt()
  var change = s(k - 1)
  println(s.replaceAll("[^" + String.valueOf(change) + "]", "*"))
}
