n=int(input())
s=input()
k=int(input())
ans=[]
for i in range(n):
    if s[i]==s[k-1]:
        t=s[i]
    else:
        t="*"
    ans.append(t)
print(*ans,sep="")
6392e2f5e29af39211df444801a6e25c23ed9f3a
<mask token>

<mask token>
for i in range(n):
    if s[i] == s[k - 1]:
        t = s[i]
    else:
        t = '*'
    ans.append(t)
print(*ans, sep='')

n = int(input())
s = input()
k = int(input())
ans = []
for i in range(n):
    if s[i] == s[k - 1]:
        t = s[i]
    else:
        t = '*'
    ans.append(t)
print(*ans, sep='')

n=int(input())
s=input()
k=int(input())
ans=[]
for i in range(n):
    if s[i]==s[k-1]:
        t=s[i]
    else:
        t="*"
    ans.append(t)
print(*ans,sep="")