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 `*`.
# coding: utf-8

intLength = int(input())
strSentence = input()
intIndex = int(input())

strAnswer = ""
strWord = strSentence[intIndex-1]
for intIdx in range(intLength):
    print(str(intIndex) + "@" + strSentence[intIdx] + "@" + strWord)

    if strSentence[intIdx] != strWord:
        strAnswer += "*"
    else:
        strAnswer += strSentence[intIdx]

print(strAnswer)

# coding: utf-8
intLength = int(input())
strSentence = input()
intIndex = int(input())

strAnswer = ""
strWord = strSentence[intIndex-1]

for intIdx in range(intLength):
    if strSentence[intIdx] != strWord:
        strAnswer += "*"
    else:
        strAnswer += strWord

print(strAnswer)
