fun main(args: Array<String>) {
	val n = (readLine() ?: return).toInt()
	val s = (readLine() ?: return).toCharArray()
	val k = (readLine() ?: return).toInt()
	for (i in s.indices)
		if (s[i] != s[k-1]) s[i] = '*'
	println(String(s))
}