import strutils, sequtils

let
  n = stdin.readline.parseInt
  s = stdin.readline
  k = stdin.readline.parseInt
  sk = s[k - 1]

var
  ans = ""

for c in s:
  if sk == c:
    ans = ans & c
  else:
    ans = ans & "*"

echo ans
