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 = int(input())
S = str(input())
K = int(input())
K_S = S[K - 1]
print(K_S)
for i in range(N):
    if S[i] != K_S:
        S = S.replace(S[i], '*')
print (S)
N = int(input())
S = str(input())
K = int(input())
K_S = S[K - 1]
for i in range(N):
    if S[i] != K_S:
        S = S.replace(S[i], '*')
print (S)