function Main(input) {
	input = input.split("\n");
	const n = parseInt(input[0]);
	const s = input[1].split("");
	const k = parseInt(input[2]);
	var st = "";

	var h = s[k-1];
	for (i=0;i<n;i++){
		if (s[i] == h) {
			st = st + h;
		} else {
			st = st + "*";
		}
	}
	console.log(st);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));