function myOut(text){console.log(text);}//standard output
function Main(input) {
	input = input.trim();
	//input = input.split(" ");
	input = input.split("\n");
	//input = input.split(" ").map((a)=>Number(a));
	//input = input.split("\n").map((a)=>Number(a));
  var len = parseInt(input[0]);
  var list = input[1].split("");
  var ind = list[parseInt(input[2]) - 1];
  for(var i = 0; i < len; i++){
    if(list[i] != ind){
       list[i] = "*";
       }
  }
  
  myOut(list.join(""));
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
