You are given a string S of length N consisting of lowercase English letters, and an integer K. Print the string obtained by replacing every character in S that differs from the K-th character of S, with `*`.
N = input()
S = input()
K = input()
alphabet = S[int(K)-1]
answer = ''
print(alphabet)
for n in range(int(N)):
    if S[n] == alphabet:
        answer = answer+S[n]
    else:
        answer = answer+'*'
print(answer)

N = input()
S = input()
K = input()


alphabet = S[int(K)-1]
answer = ''
for n in range(int(N)):
    if S[n] == alphabet:
        answer = answer+S[n]
    else:
        answer = answer+'*'

print(answer)