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=list(input())
K=int(input())
moji=S[K-1]
for i in range(N):
  if S[i]!=moji:
    S[i]="*"
mojiretu=""
for x in S:
  mojiretu+=moji
print(mojiretu)
  
N=int(input())
S=list(input())
K=int(input())
moji=S[K-1]


for i in range(N):
    
    if S[i]!=moji:
        S[i]="*"
mojiretu=""
for x in S:
  mojiretu+=x
print(mojiretu)