"use strict";

function Main(input) {
  input = input.split("\n");
  var N = parseInt(input[0], 10);
  var S = input[1];
  var K = parseInt(input[2], 10);
  var s = [...S];
  var k = s[K - 1];

  for (var i = 0; i < N; i++) {
    if (s[i] != k) {
      s[i] = "*";
    }
  }

  console.log(s.join(""));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));