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())

letter = s[k-1]
out = ''

for i in range(n):
    print(s[i], letter)
    if s[i] == letter:
        out += s[i]
    else:
        out += '*'

print(out)
n = int(input())
s = input()
k = int(input())

letter = s[k-1]
out = ''

for i in range(n):
    if s[i] == letter:
        out += s[i]
    else:
        out += '*'

print(out)