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 = input()
K = int(input())

s = ''
for i in range(N):
    if S[i] != S[K-1]:
        s += S[i]
    else:
        s += '*'

print(s)
N = int(input())
S = input()
K = int(input())

s = ''
for i in range(N):
    if S[i] == S[K-1]:
        s += S[i]
    else:
        s += '*'

print(s)