let num = Int(readLine()!)
let str = readLine()!
let mask = Int(readLine()!)

var count = 1
var masks = ""
var out = ""

for s in str.characters {
  if( count == mask ) {
  	masks = String(s)
  }
  count += 1
}

for s in str.characters {
  if( String(s) != masks ) {
    out += "*"
  } else {
  	out += String(s)
  }
}

print( out )
