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 `*`.
S = int(input())
word = list(input())
K = int(input())
judge=word[K-1]
for i in range(S):
    if word[i] != judge:
        word[i] = "*"
print(" ".join(word))
S = int(input())
word = list(input())
K = int(input())

judge=word[K-1]
for i in range(S):
    if word[i] != judge:
        word[i] = '*'
print("".join(word))