Problem:
 Score : 200 points    Problem Statement 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 * .      Constraints  1 \leq K \leq N\leq 10  S is a string of length N consisting of lowercase English letters.  N and K are integers.         Input Input is given from Standard Input in the following format:  N  S  K       Output Print the string obtained by replacing every character in S that differs from the K -th character of S , with * .        Sample Input 1 5
error
2      Sample Output 1 *rr*r  The second character of S is r . When we replace every character in error that differs from r with * , we get the string *rr*r .       Sample Input 2 6
eleven
5      Sample Output 2 e*e*e*       Sample Input 3 9
education
7      Sample Output 3 ******i**

Solution (Python):
def main():
    N = int(input())
    S = input()
    K = int(input())
    unchange = S[K-1]
    for i in range(N):
        if S[i] == unchange:
            pass
        else:
            S = S.replace(S[i], '*')
    print(S)


if __name__ == '__main__':
    main()

Solution (Python):
N = int(input())
S = input()
K = int(input())
ignore = S[K-1]

for c in [chr(i) for i in range(ord('a'), ord('z')+1)]:
    if c == ignore:
        continue
    S = S.replace(c, '*')

print(S)

Solution (Python):
n = int(input())
string = input()
k = int(input())

key = string[k-1]

index_list = [i for i,letter in enumerate(string) if letter == key]

word = ["*" for i in range(len(string))]
for elem in index_list:
	word[elem] = key

word = "".join(word)
print(word)

Solution (Python):
S= int(input())
txt = list(input())
K= int(input())

key= txt[K-1]
for i in range(S):
  if txt[i] !=key:
    txt[i]="*"

print("".join(txt))

Solution (Python):
N=int(input())
S=str(input())
K=int(input())
W=S[K-1]
for i in range(N):
  if S[i]!=W:
    S=S.replace(S[i],'*')
print(S)

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

Solution (Python):
N = int(input())
S = input()
K = int(input())

booked = S[K-1]
for s in S:
    print(s if s == booked else '*', end='')

Solution (Python):
n = int(input())
s = list(input())
k = int(input())
c = s[k-1]
for i in range(n):
  if not s[i] == c:
    s[i] = '*'
print("".join(s))

Solution (Python):
n=input()
s=input()
k=s[int(input())-1]
ans=""
for i in s:ans+= k if i==k else "*"
print(ans)

Solution (Python):
n = int(input())
s = list(input())
k = int(input())

c = s[k-1]

for i in range(n):
    if s[i] != c:
        s[i] = '*'

print(''.join(s))

Solution (Python):


N = int(input())
S = input()
K = int(input())

kth_char = S[K-1]

output = ""
for c in S:
    if c != kth_char:
        output += "*"
    else:
        output += c

print(output)

Solution (Python):
n = int(input())
s = list(str(input()))
k = int(input())
for i in range(n):
  if s[i] is not s[k-1]:
    s[i] = "*"
print("".join(s))

Solution (Python):
N = int(input())
S = list(input())
K = int(input())

for i,j in enumerate(S):
    if j != S[K-1]:
        S[i] = '*'

print(''.join(S))

Solution (Python):
n = int(input())
s = input()
k = int(input())
keep = s[k-1]
print(''.join([x if x==keep else '*' for x in s]))

Solution (Python):
n = int(input())
s = list(input())
k = int(input())
remain = s[k - 1]
if s[0] == remain:
  ans = remain
else:
  ans = "*"
for i_m in range(n - 1):
  i = i_m + 1
  if s[i] == remain:
    ans += remain
  else:
    ans += "*"
print(ans)

Solution (Python):
N = int(input())
S = str(input())
K = int(input())
ans = ""
tmp = S[K-1]
for i in range(N):
    if S[i] == tmp:
        ans += tmp
    else:
        ans += "*"
print(ans)

Solution (Python):
input()
s=input()
k=int(input())
A=s[k-1]
ans=''
for i in s:
    if i==A:
        ans+=A
    else:
        ans+='*'
print(ans)

Solution (Python):
n = int(input())
s = input()
k = int(input())


t = s[k-1]
r = ""
for i in s:
  if i not in t:
    r = r + "*"
  else:
    r = r + i
    
print(r)

Solution (Python):
n=int(input())
s=input()
k=int(input())
ans=''
for i in s:
  if i == s[k-1]:
    ans+=i
  else:
    ans+='*'
print(ans)

Solution (Python):


import sys
import copy

sys.setrecursionlimit(1000000)





N = int(input())
S = input()
K = int(input())

c = S[K - 1]

ans = ""
for a in S:
    ans += c if a == c else '*'


print(ans)

Solution (Python):

n = int(input())
s = list(input())
k = int(input())

for i in range(n):
    if s[i] != s[k - 1]:
        s[i] = "*"
print("".join(s))

Solution (Python):
if __name__ == '__main__':
	N = int(input())
	S = input()
	K = int(input())
	token = S[K-1]
	ans = ''
	for i in range(N):
		if(S[i] != token):
			ans+='*'
		else:
			ans+=S[i]

	print(ans)

Solution (Python):
N = int(input())
S = list(input())
K = int(input())-1

for i in range(N):
    if S[i] != S[K]:
        S[i] = "*"

print("".join(S))

Solution (Python):
N = int(input())
S = list(input())
K = int(input())

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

Solution (Python):
def main():
    N = int(input())
    S = input()
    K = int(input())
    ans = ""
    for c in S:
        if c == S[K-1]:
            ans += c
        else:
            ans += "*"
    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
N, S, K = int(input()), list(input()), int(input())

S_new = "".join(["*" if S[i] != S[K-1] else S[i] for i in range(N)])

print(S_new)

Solution (Python):
n = int(input())
s = input()
k = int(input())
d = s[k - 1]
ans = ''
for c in s:
  if c == d:
    ans += c
  else:
    ans += '*'
print(ans)

Solution (Python):
N = int(input())
S = list(input())
K = int(input())

target = S[K-1]


for i in range(N):
    if S[i] != target:
        S[i] = "*"

S_new = "".join(S)

print(S_new)

Solution (Python):
def mask_word(N: int, S: str, K: int)->str:
    return ''.join(c if c == S[K-1] else '*' for c in S)


if __name__ == "__main__":
    N = int(input())
    S = input()
    K = int(input())

    ans = mask_word(N, S, K)
    print(ans)

Solution (Python):
n = int(input())
s = list(input())
k = int(input())

for i in range(n):
    if s[i] != s[k-1]:
        s[i] = '*'

ans = ''.join(s)

print(ans)

Solution (Python):
N, S, K = int(input()), input(), int(input())
res = "".join(['*' if s != S[K-1] else s for s in S])
print(res)

Solution (Python):
import re;_,s,k=open(0);print(re.sub('[^%s\n]'%s[int(k)-1],'*',s))

Solution (Python):
N = int(input())
S = input()
K = int(input())

remaining = S[K-1]
T = ''
for i in range(N):
    if S[i] == S[K-1]:
        T = T + S[i]
    else:
        T = T + '*'

print(T)

Solution (Python):
def main():
    N = int(input())
    S = input()
    K = int(input())
    replace_char = S[K-1]
    ans = []
    for s in S:
        if s == replace_char:
            ans.append(replace_char)
        else:
            ans.append('*')
    print("".join(ans))

if __name__ == "__main__":
    main()

Solution (Python):
n = int(input())
s = input()
k = int(input())
ans,w = "",s[k-1]
for i in s:
  if i==w: ans+=w
  else: ans+="*"
print(ans)

Solution (Python):
n = int(input())
s = input()
k = int(input())

c = s[k - 1]
ans = ''
for ci in s:
    if ci == c:
        ans += c
    else:
        ans += "*"

print(ans)

Solution (Python):
N = int(input())
S = input()
K = int(input())
assert len(S) == N

T = (c if c == S[K-1] else '*' for c in S)
print(''.join(T))

Solution (Python):
n = int(input())
s = input()
k = int(input())

p = s[k-1]
ans = str()

for i in range(n):
    if s[i] != p:
        ans += "*"
    else:
        ans += s[i]

print(ans)

Solution (Python):
N = int(input())
S = input()
K = int(input())
for i in range(N):
    if(S[K-1] == S[i]):
        print(S[i],end="")
    else:
        print("*",end="")
print()

Solution (Python):
n = int(input())
s = input()
k = int(input())

a = s[k-1]
string = ''
for i in range(n):
    if s[i] == a:
        string += a
    else:
        string += '*'
        
print(string)

Solution (Python):
N = int(input())
S = [i for i in input()]
K = int(input())
for i in range(N):
    if S[i] != S[K-1]:
        S[i] = '*'
print(''.join(S))

Solution (Python):
N = int(input())
S = input()
K = int(input())
ans = ""
for i in range(N):
  if S[i] ==S[K-1]:
    ans += S[i]
  else:
    ans += "*"
print(ans)

Solution (Python):
"""
map(int,input().split())

X = input().split()
x = []
for i in range(0,len(X)):
    x.append(X[i])

"""

N = int(input())
S = input()
K = int(input())-1

sls = []

for w in S:
    sls.append(w)

getW = S[K]
out = ""

for i in range(0,N):
    if sls[i] != getW:
        sls[i] = "*"
    out += sls[i]


print(out)

Solution (Python):
N = int(input())
S = list(input())
K = int(input())

check = S[K-1]

for i in range(N):
    if S[i] != check:
        S[i] = "*"

print(''.join(S))

Solution (Python):

"""
Created on Sun Apr 21 13:54:29 2019

@author: Yamazaki Kenichi
"""

N = int(input())
S = input()
K = int(input())

ans = ''
key = S[K-1]
for c in S:
    if c != key:
        ans += '*'
    else:
        ans += c
print(ans)

Solution (Python):
a = int(input())
s = input()
b = int(input())
ans = ""
for i in range(a):
  if s[i] == s[b-1]:
    ans += s[i]
  else:
    ans += "*"
print(ans)

Solution (Python):
n = int(input())
s = list(input())
k = int(input())

char = s[k-1]

for i in range(n):
    if s[i] != char:
        s[i] = "*"

print("".join(s))

Solution (Python):
N = int(input())
S = input()
K = int(input())
str = S[K-1]
for i in range(N):
    if S[i] != str:
        S=S.replace(S[i],'*')
print(S)

Solution (Python):
n = int(input())
s = input()
k = int(input())

target = s[k-1]

output = []

for i in range(n):
	if s[i]!=target:
		output.append("*")
	else:
		output.append(target)

print("".join(output))

Solution (Python):
n = int(input())
s = str(input())
k = int(input())
for i in range(n):
    if s[i] != s[k-1]:
        s = s.replace(s[i],"*")
print(s)

Solution (Python):
import re

N = int(input())
S = str(input())
K = int(input())

print(re.sub(r'[^%s]'%S[K-1], '*', S))

Solution (Python):
n=int(input())
S=input()
k=int(input())
c=S[k-1]
ans=''
for i in range(n):
    ans+=[S[i],'*'][S[i]!=c]
print(ans)

Solution (Python):
n = int(input())
word = list(input())
k = int(input())

ans = []

for letter in word:
    if letter == word[k-1]:
        ans.append(letter)
    else:
        ans.append('*')

print(''.join(ans))

Solution (Python):
n = int(input())
s = input()
s = list(map(str, s))
k = int(input())
k -= 1

for i in range(n):
	if s[i] != s[k]:
		s[i] = '*'

print(''.join(s))

Solution (Python):
n = int(input())
s = input()
k = int(input())
t = s[k - 1]
r = ""
for i in s:
    if i == t:
        r = r + i
    else:
        r = r + "*"

print(r)

Solution (Python):
N = int(input())
S = input()
K = int(input())

target = S[K - 1]
ans = ''
for i, c in enumerate(S):
    if c == target:
        ans += c
    else:
        ans += '*'
print(ans)

Solution (Python):
N = int(input())
S = list(input())
K = int(input()) - 1

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

Solution (Python):
n = int(input())
s = input()
k = int(input())
q = s[k-1]
ans = ""
for a in s:
    if a != q:
        ans = ans + "*"
    else:
        ans = ans + s[k-1]

print(ans)

Solution (Python):
n = int(input())
S = input()
k = int(input())
c = S[k-1]
res = ""
for s in S:
	if s == c:
		res += c
	else:
		res += '*'
print(res)

Solution (Python):
n = int(input())
s = input()
k = int(input())

r_c = s[k-1]

res = ""

for c in s:
    if c == r_c:
        res += r_c
    else:
        res += "*"
print(res)

Solution (Python):
def getInt(): return int(input())
def getIntList(): return [int(x) for x in input().split()]
def zeros(n): return [0]*n

class Debug():
    def __init__(self):
        self.debug = True
 
    def off(self):
        self.debug = False
 
    def dmp(self, x, cmt=''):
        if self.debug:
            if cmt != '':
                w = cmt + ': ' + str(x)
            else:
                w = str(x)
            print(w)
        return x

def prob():
    d = Debug()
    d.off()
    N = getInt()
    S = input()
    K = getInt()
    d.dmp((N, S, K),'N, S, K')
    keep = S[K-1]
    newS = ''
    for c in S:
        if c == keep:
            newS += c
        else:
            newS += '*'
    return newS

ans = prob()
print(ans)

Solution (Python):
n = int(input())
s = input()
k = int(input())
li = []

for i in s:
  li.append(i)
check = li[k - 1]
for j in range(n):
  if li[j] != check:
    li[j] = "*"
ans = ""
for l in li:
  ans = ans + l
print(ans)

Solution (Python):
n=int(input())
S=str(input())
K=int(input())
ans=''
sk=S[K-1]

for i in range(n):
    if S[i]!=sk:
        ans += '*'
    else:
        ans += sk

print(ans)

Solution (Python):

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)

Solution (Python):

n = int(input())
s = list(input())
k = int(input())

for i in range(n):
    if s[i] != s[k - 1]:
        s[i] = "*"
print("".join(s))

Solution (Python):
n=int(input())
s=input()
x=s[int(input())-1]
for i in range(n):
  if s[i]==x:
    print(x,end="")
  else:
    print("*",end="")

Solution (Python):
N = int(input())
S = input()
K = int(input())

tag = S[K-1]
for n in range(N):
    if S[n] != tag:
        S = S[:n] + '*' + S[n+1:]

print(S)

Solution (Python):
n = int(input())
s = input()
k = s[int(input())-1]
n = ""
for i in s:
    if i != k:
        n += '*'
    else:
        n += k
print(n)

Solution (Python):
N = int(input())
S = input()
K = int(input())
print(''.join("*" if si != S[K - 1] else si for si in S))

Solution (Python):
N = int(input())
S = input()
K = int(input())

result = ""
for si in S:
    result += "*" if si != S[K - 1] else si
print(result)

Solution (Python):
n = int(input())
s = input()
k = int(input())

for i in range(n):
    if s[i] == s[k-1]:
        print(s[i], end='')
    else:
        print('*', end='')

Solution (Python):
N = int(input())
S = str(input())
K = int(input())


S = list(S)

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

Solution (Python):
n = int(input())
s = input()
k = int(input())

diff = s[k - 1]

lis = []

for i in range(n):
  if s[i] != diff:
    lis.append('*')
  else:
    lis.append(diff)

print(''.join(lis))

Solution (Python):
n = int(input())
s = input()
k = int(input())

rs = ''
for i in range(0, n):
    if s[i] != s[k-1]:
        rs += '*'
    else:
        rs += s[i]

print(rs)

Solution (Python):
N = int(input())
S = input()
K = int(input()) - 1
s = S[K]
ans = ''

for i in S:
    if i == s:
        ans += i
    else:
        ans += '*'

print(ans)

Solution (Python):
import re
n = int(input())
s = input()
k = int(input())
s = re.sub(r"[^{}]".format(s[k-1]), '*', s)
print(s)

Solution (Python):
N=int(input())
S=list(input())
K=int(input())

x=S[K-1]

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

print("".join(S))

Solution (Python):
n = int(input())
s = input()
index = int(input()) - 1
ans = ""
for c in s:
    if c != s[index]:
        ans += "*"
    else:
        ans += c
print(ans)

Solution (Python):
n = int(input())
s = input()
k = int(input())
for c in s:
  if c == s[k - 1]:
    print(c, end='')
  else:
    print('*', end='')

Solution (Python):
import re;_,s,k=open(0);print(re.sub('[^%s]'%s[int(k)-1],'*',s[:-1]))

Solution (Python):
n = int(input());s = input()
rmn = s[int(input())-1]
for c in s: print(c if c==rmn else "*", end="")
print()

Solution (Python):
n = int(input())
s = input()
k = int(input())
res = ''
for i in range(n):
  res += s[i] if s[i] == s[k-1] else '*'
print(res)

Solution (Python):
_,s,k=open(0);print(''.join(t*(t==s[int(k)-1])or'*'for t in s[:-1]))

Solution (Python):
_,s,k=open(0);print(''.join(t*(t==s[int(k)-1])or'*'for t in s[:-1]))

Solution (Python):
N=int(input())
S=input()
K=int(input())
c=S[K-1]
for i in range(N):
    if S[i]==c:
        print(c,end='')
    else:
        print('*',end='')

Solution (Python):
N = int(input())
S = input()
K = int(input())

s = ''
for i in range(N):
    if S[i] == S[K-1]:
        s += S[i]
    else:
        s += '*'

print(s)

Solution (Python):
n=int(raw_input())
s=raw_input().rstrip()
k=int(raw_input())
c=s[k-1]
print ''.join([c if s[i]==c else '*' for i in range(n)])

Solution (Python):

N = int(input())
S = str(input())
K = int(input())
char = S[K - 1]
ans = ''
for c in S:
    if c == char:
        ans = ans + char
    else:
        ans = ans + '*'
print(ans)

Solution (Python):
N = int(input())
S = list(input())
K = int(input())
lit = S[K-1]
for i in range(N):
  if S[i] != lit:
    S[i] = '*'
print(''.join(S))

Solution (Python):
N=int(input())
S=list(input())
K=int(input())
ans=''
for i in range(N):
  if S[i]!=S[K-1]:
    S[i]='*'
for i in range(N):
  ans=ans+S[i]
print(ans)

Solution (Python):
N = int(input())
S = list(input())
K = int(input())
lit = S[K-1]
for i in range(N):
  if S[i] != lit:
    S[i] = '*'

print(''.join(S))

Solution (Python):
N=int(input())
S=input()
K=int(input())

x=S[K-1]
for i in range(N):
	if S[i]!=x:
		S_list=list(S)
		S_list[i]='*'
		S="".join(S_list)
print(S)

Solution (Python):
N = int(input())
S = input()
K = int(input())
ans = ""
for i in range(N):
    if S[K-1] == S[i]:
        ans += S[i]
    else:
        ans += "*"
print(ans)

Solution (Python):
N = int(input())
S = input()
K = int(input())

ans = ""

for s in S:
    if s == S[K-1]:
        ans += s
    else:
        ans += '*'

print(ans)

Solution (Python):
if __name__=="__main__":
    N = int(input())
    S = input()
    K = int(input())

    match = S[K-1]
    S = list(S)
    for x in range(N):
        if S[x] != match:
            S[x]= '*'
    S = "".join(S)
    print(S)

Solution (Python):
n = int(input())
s = input()
k = int(input())
t = s[k - 1]
print(''.join(t if t == i else '*' for i in s))

Solution (Python):
input()
s=input()
k=int(input())
print(''.join(['*',i][i==s[k-1]]for i in s))

Solution (Python):
input()
s=input()
k=int(input())
print(''.join(['*',i][i==s[k-1]]for i in s))

Solution (Python):
N = int(input())
str = list(input())
K = int(input()) - 1
str_list = list(str)
for i in range(N):
    if str[i] != str[K]:
        str[i] = '*'
str_changed = ''.join(str)
print(str_changed)

Solution (Python):
N = int(input())
S = input()
K = int(input())
fix = S[K-1]
message = "".join([character if character == fix else '*' for character in S])
print(message)

Solution (Python):
input()
print((lambda S,K:''.join(['*',i][i==S[K-1]]for i in S))(input(),int(input())))

Solution (Python):
N = int(input())
s = input()
K = int(input())

ans = ''
for ss in s:
    if ss == s[K - 1]:
        ans += s[K - 1]
    else:
        ans += '*'
print(ans)

Solution (Python):
n = int(input())
s = input()
k = int(input())
x = ""
for i in range(n):
  if s[i] == s[k-1]:
    x = x+s[i]
  else:
    x = x+"*"
print(x)

Solution (Python):
N = int(input())
S = input()
K = int(input())

ans = ""

for s in S:
    if s == S[K-1]:
        ans += s
    else:
        ans += '*'

print(ans)

Solution (Python):
N = int(input())
S = input()
K = int(input())

Slist = list(S) 
e = Slist[K-1]
for i in range(N):
  if Slist[i] != e:
    Slist[i] = '*'
print("".join(Slist))

Solution (Python):

n = int(input())
s = str(input())
k = int(input())

c = s[k-1]
st = ""
for char in list(s):
    if char == c:
        st = st + char
    else:
        st = st + "*"
print(st)

Solution (Python):
n = int(raw_input())
s = raw_input()
k = int(raw_input())

l = list(s)
t = l[k-1]
a = ''

for i in l:
    if i == t:
        a += t
    else:
        a += "*"

print a

Solution (Python):
n=int(input())
s=list(input())
m=int(input())
for i in range(n):
    if s[i]!=s[m-1]:
        s[i]="*"
print("".join(s))

Solution (Python):
n=int(input())
s=input()
l=int(input())-1
moji=s[l]
M=["*"]*n

for i in range(n):
  if s[i]==moji:
    M[i]=moji
    
ans=""
for i in range(n):
  ans+=M[i]
  
print(ans)

Solution (Python):

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

print(''.join([item if item == s[k-1] else '*' for item in s]))

Solution (Python):
N=int(input())
S=input()
c=S[int(input())-1]
T=""
for i in S:
    if i==c:
        T=T+i
    else:
        T=T+"*"
print(T)

Solution (Python):
N = int(input())
S = input()
K = int(input())

ans = ""
target = S[K-1]
for s in S:
    if s == target:
        ans += target
    else:
        ans += "*"
print(ans)

Solution (Python):
N = int(input())
S = input()
K = int(input())

s = S[K-1]

for i in S:
    if i == s:
        print(i, end='')
    else:
        print('*', end='')
print()

Solution (Python):
import re
N = int(input())
S = input()
K = int(input())
print(re.sub("[^%s]"%S[K-1],"*",S))

Solution (Python):
input();s=input();k=int(input())
c=""
d=s[k-1]
for i in s:
    if i!=d:
        c+="*"
    else:
        c+=d
print(c)

Solution (Python):
from heapq import heappush,heappop
import re

def int_raw():
    return int(input())

def ss_raw():
    return input().split()

def ints_raw():
    return list(map(int, ss_raw()))
INF = 1 << 29


def runLength(in_str):
    kukan = 1
    start = 0
    ret = []
    for i in range(1,len(in_str)):
        if in_str[i-1]!=in_str[i]:
            ret.append([in_str[i-1],kukan,start])
            start = i
            kukan=0
        kukan+=1
    ret.append([in_str[-1],kukan,start])
    return ret

N = int_raw()
S= input()
K = int_raw()
dp = {}

def rec(ss):
    return 0

def main():
    return re.sub("[^"+S[K-1]+"]","*",S)



print(main())

Solution (Python):
N = int(input())
S = input()
K = int(input())

c = S[K-1]
out = ""
for s in S:
    if s ==c:
        out += c
    else:
        out += "*"
print(out)

Solution (Python):
N=int(input())
S= input()
K = int(input())

s = S[K-1]

print(''.join(['*' if c!=s else s for c in S]))

Solution (Python):
n = int(input())
s = str(input())
k = int(input())
for i in range(n):
    if s[i] != s[k-1]:
        s = s.replace(s[i],"*")
print(s)

Solution (Python):
n = int(input())
s = list(input())
k = int(input())
print("".join(list(map(lambda x: "*" if x!=s[k-1] else x, s))))

Solution (Python):
N = int(input())
S = input()
K = int(input())

a = S[K-1]
ans = ""
for i in S:
    if i == a:
        ans += i
    else:
        ans += "*"
print(ans)

Solution (Python):
import sys

def solve(N, S, K):
    char = S[K-1]

    ans = ''
    for i in xrange(len(S)):
        ans += S[i] if S[i] == char else '*'
    return ans

if __name__ == '__main__':

    N = sys.stdin.readline().strip()
    S = sys.stdin.readline().strip()
    K = sys.stdin.readline().strip()
    ans = solve(int(N), S, int(K))
    print ans

Solution (Python):
_ = input()
s = input()
k = int(input())

ss = ''

for a in s:
 if a == s[k-1]:
  ss += s[k-1]
 else:
  ss += '*'
else:
 print(ss)

Solution (Python):




n = int(input())
s = input()
k = int(input())
x = s[k-1]

ans = ""
for i in s :
    if i == x :
        ans += i
    else:
        ans += '*'
print(ans)

Solution (Python):
n = int(input())
s = str(input())
k = int(input())
for i in range(n):
    if s[i] != s[k-1]:
        s = s.replace(s[i],"*")
print(s)

Solution (Python):
n = int(input())
s = input()
k = int(input())

c = s[k-1]

def rep(x):
    if x == c:
        return c
    else:
        return "*"


ret = [rep(i) for i in s]

print(''.join(ret))

Solution (Python):



N = input()

S = input()

K = input()

ans = '';

for k,v in enumerate(S):
    
    
    if v == S[int(K)-1]:
        ans += v
    else:
        ans += '*' 

print(ans)

Solution (Python):
N=int(input())
S=input()
K=int(input())
n=0
s=list(S)
a=s[K-1]
while True:
    if s[n] is not a:
        s[n]='*'
    n=n+1
    if n==N:
        break
mojiretu=''.join(s)
print(mojiretu)

Solution (Python):
n = int(input())
s = input()
k = int(input())

moji = s[k-1]
answer = ""
for c in s:
    if c == moji:
        answer += c
    else:
        answer += "*"

print(answer)

Solution (Python):
a = int(input())
b = input()
c = int(input())
for i in range(len(b)):
    if b[i] != b[c-1]:
        b = b.replace(b[i],'*')
print(b)

Solution (Python):


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

S = []
for i in s:
    S.append(i)

ta = S[k-1]
    
for i in range(n):
    if S[i] == ta:
        print(S[i],end = "")

    else:
        print("*",end = "")

Solution (Python):
N = int(input())
S = input()
K = int(input())

l = list(S)

a = l[K-1]

ls = []

for i in l:
    if i == a:
        ls += i
    else:
        ls += '*'

ret = ''.join(ls)

print(ret)

Solution (Python):
n=int(input())
s=list(input())
k=int(input())
tmp=s[k-1]
for i in range(n):
  print(s[i],end="") if s[i]==tmp else print("*",end="")
print("")

Solution (Python):
import re

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

keychar = s[k-1]
mask = "*"
mask2 = "1"

masked = re.sub(r'%s'%keychar, mask2, s)
masked = re.sub(r'[a-z]', mask, masked)
masked = re.sub(r'%s'%mask2, keychar, masked)
print(masked)

Solution (Python):
i = [input() for i in range(3)]

l = []
count = 0
for n in i:
    if count != 1:
        n = int(n)
    l.append(n) 
    count += 1

s = l[1]


for i in range(l[0]):
    
    if s[i] != s[l[2]-1]:
        s = list(s)
        s[i] = '*'
        s = "".join(s)
        
print(s)

Solution (Python):
N = int(input())
S = input()
K = int(input()) - 1
for i in range(N):
    if S[i] == S[K]:
        print(S[K], end='')
    else:
        print('*', end='')

Solution (Python):
n = int(input())
str = input()
remained_str = str[ int(input()) - 1 ]

ans = ''
for s in str:
  if( s == remained_str ):
    ans += s
  else:
    ans += '*'
print(ans)

Solution (Python):
n=int(input())
s=input()
k=int(input())

ans=''
for x in s:
    if x!=s[k-1]:
        ans=ans+'*'
    else:
        ans=ans+s[k-1]
print(ans)

Solution (Python):
import sys


def main():
    N = int(sys.stdin.readline())
    S = sys.stdin.readline().strip()
    K = int(sys.stdin.readline())
    s = S[K-1]
    result = ""
    for i in list(S):
        if i == s:
            result = result + i
        else:
            result = result + "*"
    print(result)


if __name__ == "__main__":
    main()

Solution (Python):
N=int(input())
S=str(input())
K=int(input())
Slist = list(S)
S_changed= S
for i in range(N):
    if S[K-1]!=S[i]:
        Slist[i]='*'
        S_changed="".join(Slist)
print(S_changed)

Solution (Python):
n=int(input())
s=list(input())
k=int(input())

for i in range(n):
    if s[i] != s[k-1] :
        del s[i]
        s.insert(i,"*")
        
x=''.join(s)
        
print(x)

Solution (Python):


import sys
input = sys.stdin.readline

def io_generator():
	return input()


	
def main(io):
	n=int(io())
	s=io()[:n]
	k=int(io())
	cc=s[k-1]
	ll=lambda c:c if c==cc else '*'

	return ''.join([ll(c) for c in list(s)])



if __name__ == "__main__":
	io= lambda : io_generator()
	print (main(io))

Solution (Python):
N = int(input())
S = input()
K = int(input())

K_new = K - 1
i = 0

for i in range(0,N):
    if S[i] != S[K_new]:
        print("*", end="")
        i += 1
    else:
        print(S[i], end="")
        i += 1

Solution (Python):
N =input()
S =raw_input()
K =input()

tgt=S[K-1:K]

out = ""
for i in range(N):
  c=S[i]
  if c==tgt: 
    out=out+c
  else:
    out=out+'*'

print out

Solution (Python):
N = int(input())
S = input()
K = int(input())
 
moji = S[K-1]
ns = ''
for s in S:
  if moji == s:
    ns += moji
  else:
    ns += '*'
print(ns)

Solution (Python):
n=int(input())
s=input()
k=int(input())
l=list(s)
l_a=['*' if not l[k-1] in s else l[k-1] for s in l]
l_aa="".join(l_a)
print(l_aa)

Solution (Python):
N = int(input())
S = input()
K = int(input())
key = S[K-1]
L = [i for i in S]
for i in range(N):
    if L[i] != key:
        L[i] = "*"
print("".join(L))

Solution (Python):
n = int(input())
s = input()
k = int(input())

str_list = list(s)
x = str_list[k-1]
for i in range(len(s)):
    if str_list[i] != x:
        str_list[i] = "*"
str_changed = "".join(str_list)
print(str_changed)

Solution (Python):
N = int(input())
S = input()
K = int(input())

target = S[K-1]

index =[]

for i in range(0,N):
   if S[i] != target:
       index.append(i)

for j in range(0,len(index)):
   S = S[:index[j]] + '*' + S[index[j] + 1:]

print(S)

Solution (Python):
N=int(input())
S=[i for i in input()]
K=int(input())
for i in range(N):
	if S[i] !=S[K-1]:
		S[i] = '*'
print(''.join(S))

Solution (Python):
N = int(input())
S = input()
K = int(input())
K = S[K-1]
S = list(S)

for i in range(N):
    if S[i] != K:
        S[i] = "*"

S = "".join(S)
print(S)

Solution (Python):
N = int(input())
S = input()
K = int(input())

for i in range(0,N):
    if S[i] != S[K-1]:
        S = S.replace(S[i], "*")
print(S)

Solution (Python):
n=int(input())
s=input()
k=int(input())

token=s[k-1]

print("".join(["*" if w!=token else w for w in s]))

Solution (Python):
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))

Solution (Python):
N = int(input())
word = input()
word_list=[]
word_num = int(input())

for i in range(len(word)):
    word_list.append(word[i])
    if str(word[i]) != str(word[word_num -1]):
         word_list[i] = '*'

print("".join(list(map(str,word_list))))

Solution (Python):
n = int(input())
s = input()
k = int(input())
ans = ['*' if s[k-1] != s[i] else s[i] for i in range(n)]
print(''.join(ans))

Solution (Python):
N = int(input())
S = list(input())
K = int(input())

for i in range(N):
    if S[i] == S[K-1]:
       pass
    else:
       S[i] = '*'
        
        
mojiretu = ','.join(S)
print(mojiretu.replace(',', ''))

Solution (Python):
N=int(input())
S=input()
K=int(input())
count=0
for s in S:
    if s==S[K-1]:
        pass
    else:
        S=S[:count] + '*' + S[count+1:]
    count+=1
print(S)

Solution (Python):
N = input()
S = input()
K = input()


alphabet = S[int(K)-1]
answer = ''
for n in range(int(N)):
    if S[n] == alphabet:
        answer = answer+S[n]
    else:
        answer = answer+'*'

print(answer)

Solution (Python):
N = int(input())
S = str(input())
K = int(input())
K = K - 1
inc = 0

target = S[K]
for i in S:
    if not target == i:
        S = S.replace(S[inc], '*')
    inc += 1
print(S)

Solution (Python):
N = int(input())
S = list(str(input()))
K = int(input())

SK = str(S[K-1])
for i in range(0,N):
    if S[i] == SK:
        pass
    else:
        S[i] = '*'
for j in S:
  print(j, end ="")

Solution (Python):
n = int(input())
s = list(input())
k = int(input())
dstr = s[k-1]
newS = ""
for i in s:
    if i != dstr:
        i = "*"
    newS += i
print(newS)

Solution (Python):
N = int(input())
S = input()
K = int(input())

word = S[K-1]

modify = ''
for s in S:
 if s == word:
   modify += s
 else:
   modify += '*'

print(modify)

Solution (Python):
n = int(input())
sstr = input()
k = int(input())


s = list(sstr)

for i in range(n):
 if s[k-1] != s[i]:
  s[i] = "*"


sStr = "".join(s)
print(sStr)

Solution (Python):
n = int(input())
s = input()
k = int(input())
t = [''] * n

for i in range(n):
    if s[i] == s[k - 1]:
        t[i] = s[i]
    else:
        t[i] = '*'

print(''.join(t))

Solution (Python):
n = int(input())
s = input()
k = int(input())
s_list = list(s) 
for i in range(0 , n) :
    if s_list[i] != s_list[k-1] :
        s_list[i] = "*"
a = "".join(s_list)
print(a)

Solution (Python):
N = int(input())
S = list(input())
K = int(input())

ok_str = S[K-1]

for i in range(N):
    if S[i] == ok_str:
        pass
    else:
        S[i] = '*' 

print(''.join(S))

Solution (Python):
n = int(input())
s = input()
k = int(input())

ss = []
for i in range(n):
  if s[i] != s[k-1]:
    ss.append('*')
  else:
    ss.append(s[i])
print(''.join(ss))