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):
N = int(input())
S = str(input())
K = int(input())

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

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

trig = s[k-1]

out = ""

for l in s:
    if l == trig:
        out += trig
    else:
        out += "*"

print(out)

Solution (Python):
a = int(input())
strings = input()
num = int(input())
target = strings[num - 1]
for i in range(a):
    if target != strings[i]:
        strings = strings[:i] + "*" + strings[i + 1:]
print(strings)

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

ans = ""

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

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

c = S[K - 1]

ans = ''
for i, s in enumerate(S):
    if s == c:
        ans += s
    else:
        ans += '*'

print(ans)

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

Solution (Python):






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

replace_char = S[K-1]


output= ""
for char in S:
  if char != replace_char:
    output +="*"
  else:
    output +=char

print(output)

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

Solution (Python):
N = int(input())
S = input()
K = int(input())
O = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
if S.islower():
    if len(S) == N:
        if 1 <= K <= N <= 10:
            W = str(S[K - 1])
            O.remove(W)
            for i in range(24):
                S = S.replace(O[i],"*")
print(S)

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

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

replace = s[k-1]
list_2 = list(s)

for i in range(len(s)):
    if list_2[i] != replace:
        list_2[i] = "*"
    
s = "".join(list_2)
print(s)

Solution (Python):
import sys
def p(*a):
  s=" ".join(map(str,a))
  
  sys.stderr.write(s+"\n")


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

c=S[K-1]

ans=""

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

print(ans)

Solution (Python):
import sys

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

SS = []

for i in range(N):
  if S[i] == S[K-1]:
    SS.append(S[i])
  else:
    SS.append("*")
    
print(''.join(SS))

Solution (Python):
import re
n = input()
s = input()
k = input()
chlist = list(s)
ked = int(k) - 1
nonreplace = chlist[int(ked)]
for num in range(int(n)):
  
  if chlist[num] == nonreplace:
    pass
  else:
    chlist[num] = "*"
stred = ''.join(chlist)
print(stred)

Solution (Python):
N=int(input())
S=input()
K=int(input())-1
k=S[K]
h=[]
for i in range(N):
    g=S[i]
    if k==g:
        h.append(k)
    else:
        h.append("*")
m=','.join(h)
j=m.maketrans({',':''})
print(m.translate(j))

Solution (Python):
kazu = int(input())
mozi = input()
sitei = int(input())
lst = []

for i in range(kazu):
    if mozi[i] == mozi[sitei-1]:
        print(mozi[i],end ="")
    else:
        print("*",end="")

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

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

for i in range(len(S)):
    if S[i] != st:
        S[i] = "*"

print(''.join(S))

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

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

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

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

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

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

Solution (Python):
n = int(input())
str = input()
str =list(str)
str.append("a")
cs = int(input())

char = str[cs-1]
for i in range(n):
  if str[i] != char:
    str[i:i+1] = "*"
ans = str[0:n]

print(*ans,sep ="")

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

ss = s[k-1]

new_s = []

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

print(''.join(new_s))

Solution (Python):
N = int(input())
S = list(input())
K = int(input())
char = S[K-1]
n = 0
for N in S:
    if S[n] != char:
        S[n] = '*'
        n += 1
    else:
        n +=1
        
S_ = ''.join(S)
print(S_)

Solution (Python):

N = int(input())
s = input()
K = int(input())
letter = s[K-1]
for i in range(N):
    if s[i] != letter:
        s = s[:i] + '*' + s[i+1:]
        
print(s)

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

tar = S[K-1]

lis = (_ if _==tar else "*" for _ in S)
print("".join(lis))

Solution (Python):
n = int(input())
s = str(input())
k = int(input())
ans = ""

for l in s:
  if l != s[k-1]:
    l = "*"
  ans += l
print(ans)

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

target = S[K-1]
ans = ''

for i in range(N):
    if S[i] == target:
        ans += target
    else:
        ans += '*'

print(ans)

Solution (Python):
n = input()
word = input()
a= input()
b=0
text=''
x=word[int(a)-1]
 
for i in range(int(n)):
    if word[i] == x:
         text = text + x
    else:
        text = text + '*'
print(text)

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

Sk = S[K-1]
a = []

for i,char in enumerate(S):
  if char != Sk:
    a.append(str('*'))
  else:
    a.append(char)

print(''.join(a))

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

Solution (Python):
n=int(input())
string=input()
i=int(input())
newString=""
for char in string:
    if char!=string[i-1]:
        newString+="*"
    else:
        newString+=char
print(newString)

Solution (Python):
N = int(input())
S = input()
K = int(input())
list = []
Sk = S[K-1]
for i in range(0,N):
  s = S[i]
  s_ans = Sk if s == Sk else "*"
  list.append(s_ans)
ans = "".join(list)
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("\n")

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

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

Solution (Python):
n=input()
m=input()
l=int(input())
kotae=""
key=m[l-1]

for i in range(len(m)):
    if m[i] != key:
        kotae=kotae+"*"
    else:
        kotae=kotae+key
print(kotae)

Solution (Python):
n = int(input())
s = input()
k = int(input())
a = s[k - 1]
for j in range(n):
  if s[j] == a:
    None
  else:
      s = s.replace(s[j],"*")
print(s)

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

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

s =list(s)

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

print(''.join(s))

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

char = S[int(K)-1]



ans = []

for j in range(len(S)):
  
  if char != S[j]:
    ans.append("*")
    
  else:
    ans.append(char)
    continue

print("".join(ans))

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

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

Solution (Python):
import sys

input = sys.stdin.readline
n = int(input())
s = input()[:-1]
k = int(input())
c = s[k-1]
ans = ''
for i in s:
    if i == c:
        ans += c
    else:
        ans += '*'
print(ans)

Solution (Python):
N = int(input())
S = input().rstrip()
K = int(input())
 
val = list(S)[K-1]
output=[tmp if tmp == val else '*' for tmp in list(S) ]
 
print("".join(output))

Solution (Python):
def eee(s,k):
    a = s[k-1]
    k = list(filter(lambda x:x!=a,s))
    z = ''.join(s)
    for i in k:
        z = z.replace(i,'*')
    return z

n = int(input())
s = list(input())
k = int(input())
print(eee(s,k))

Solution (Python):
import re
def main():
    N = int(input())
    S = input()
    K = int(input())
    nontarget = S[K - 1]
    S = S.replace(nontarget, '0')
    S = re.sub('\D', '*', S)
    S = S.replace('0', nontarget)
    print(S)
main()

Solution (Python):
import sys

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

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

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

print(''.join(S))

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

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

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

word = S[K-1]
chars = list(S)

rep = lambda c: "*" if c != word else c

newchars = [rep(c) for c in chars]
print("".join(newchars))

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

Solution (Python):


N = int(input())
S = input()
K = int(input())
ans = [s if s == S[K-1] else '*' for s in S]

print(''.join(ans))

Solution (Python):
import re
N = int(input())
str = input()
num = int(input())

for i in range(N):
    if str[i] == str[num-1]:
        print(str[i], end="")  

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

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

B=[]
for i in range(N):
    if S[K-1]!=S[i]:
        B.append("*")
    elif S[K-1]==S[i]:
        B.append(S[i])

c="".join(B)
print(c)

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

for i in range(N):
    if S[i] == key:
        ans += key
    else:
        ans += '*'

print(ans)

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

Solution (Python):
N=input()
S=str(input())
K=int(input())
Ans=""
for i in range(0,len(S),1):
  if S[i]==S[K-1]:
    Ans+=str(S[i])
  elif S[i]!=S[K-1]:
    Ans+="*"

print(Ans)

Solution (Python):
wordSize = int(input())
word= str(input())
removePosition = int(input())
reword=''
for i in range(wordSize):
    if(word[i]!=word[removePosition-1]):
        reword +=(str("*"))
    else:
        reword+=(word[i])
print(reword)

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

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

mozi = s[k-1]

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

print(*s, sep="")

Solution (Python):
import re

N = int(input())
S = input()
K = int(input())
test = list(S)
str = ""
for i in test:
    if(i == test[K - 1]):
        str += i
    else:
        str += "*"
print(str)

Solution (Python):
N = int(input())
S = input()
K = int(input())
w = S[K-1]
tmp = []
for s in S:
    if s == w:
        tmp.append(s)
    else:
        tmp.append('*')

print(''.join(tmp))

Solution (Python):

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

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

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

key = s[k-1]

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

print(''.join(s))

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

print(S)

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

a = S[K-1]
b = []
for i in S:
	if(i == a):
		b.append(i)	
	else:
		b.append('*')
t = ''.join(b)
print(t)

Solution (Python):
import sys

def parse(inp):
    n=int(next(inp))
    s=list(next(inp))[:-1]
    k=int(next(inp))    
    return n,s,k
  
def main(inp):
    n,s,k=inp
    
    keep=s[k-1]
    
    ans=""
    for i in range(n):
        if(s[i]==keep): ans+=s[i]
        else: ans+="*"
            
    print(ans)
    
main(parse(sys.stdin))

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

sk = s[k-1]
ans = []
for ss in s:
  if ss == sk:
    ans.append(ss)
  else:
    ans.append("*")
a = ''.join(ans)
print(a)

Solution (Python):
n=int(input())
s=list(input())
k=int(input())
p=s[k-1]

for i in range(n):
    if s[i]!=p:
        s[i]='*'
print(''.join(s))

Solution (Python):
word_size = int(input())
word = input()
num =  int(input())

replace_word = word[num-1]

for i in word:
    if i != replace_word:
        print("*",end="")
    else:
        print(i,end="")

Solution (Python):
import numpy as np
n=3
a=[input() for i in range(n)]

S=list(a[1])
s=len(S)
K=int(a[2])-1

for i in range(s):
  if S[i]!=S[K]:
    S[i]="*"
mojiretu = ''
    
for x in S:
    mojiretu += x
    
print(mojiretu)

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

target = S[K-1]
result = ""
for i in S:
    if target == i:
        result += i
    else:
        result += '*'

print(result)

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

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

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

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

Solution (Python):
import numpy as np
  
input()
S = np.asarray(list(str(input())))
K = int(input())
s = S[K-1]
S[S!=s] = "*"
print("".join(S))

Solution (Python):
REPLACE_CHAR = "*"

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

keep_char = s[k - 1]
replaced_str = ""

for char in s:
    if char != keep_char:
        replaced_str += REPLACE_CHAR
    else:
        replaced_str += char

print(replaced_str)

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

Solution (Python):
N = int(input())
Str = input()
K = int(input())
List = list(Str)

chikan = List[K-1]

for i in range(N):
    if List[i] != chikan:
        List[i] = '*'

Str = "".join(List)
print(Str)

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

moji=s[k-1]

line=[]

for i in range(n):
    line.append(s[i])

for i in range(len(s)):
    if s[i]!=moji:
        line[i]="*"

output=""

for i in range(len(line)):
    output=output+line[i]

print(output)

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

x = S[K-1]

for i in range(len(S)):
    if S[i] != x:
        S = S.replace(S[i],'*')
print(S)

Solution (Python):
N = int(input())
S = input()
K = int(input())
target = S[K-1]
result = []
result2 = ''
for i in S:
    if i is target:
        result.append(i)
    else:
        result.append('*')
for i in result:
    result2 += i

print(result2)

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

s=list(S)

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

s_a=''.join(s)

print(s_a)

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

k = S[K-1]

ans = []

for i in S:
    if i == k:
        ans.append(k)
    else:
        ans.append('*')

print(''.join(ans))

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

a = S[K-1]

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

print(''.join(S))

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

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

print(s)

Solution (Python):
import sys

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

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

ans = ''
for i in range(N):
    ans += L[i]

print(ans)

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

Solution (Python):
_  = input()
s = input()
index = int(input())-1

result = ''

t = s[index]

for i in s:
  if i != t:
    result += '*'
  else:
    result += i
print(result)

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

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

for i in range(N):
    if ls_S[i]!=ls_S[K-1]:
        ls_S[i]="*"
for s in ls_S:
    print(s,end = "")

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

oki = S[K-1]
ans = ""
for i in range(N):
    if S[i] == oki:
        ans += S[i]
    else:
        ans += "*"

print(ans)

Solution (Python):
a=int(input())
b=input()
c=int(input())
b=list(b)
l=b[c-1]
r=[i for i, x in enumerate(b) if x==l]
s=['*']*a
for k in r:
    s[k]=b[k]
print(''.join(s))

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

char = s[k-1]
ans=''
for i in s:
    if i!=char:
        ans+='*'
    else:
        ans+=char
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):
N = int(input())
S = list(input())
K = int(input())
 
for i in S:
    if S[K-1] == i:
        print(i, end="")
    else:
        print("*", end="")
print()

Solution (Python):
def replace_ast(N, S, K):
    rstr = S[K-1]
    outstr = ''
    for s in S:
        if s == rstr:
            outstr += s
        else:
            outstr += '*'
    print(outstr)


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

replace_ast(N, S, K)

Solution (Python):
num = int(input())
text = input()
a = int(input())
w = text[a-1]
result = ""

for i in range(num):
    if text[i] == w:
        result += text[i]
    else:
        result += '*'
print(result)

Solution (Python):



from sys import stdin







n = stdin.readline()
N = int(n)
n = stdin.readline()
S = str(n)
n = stdin.readline()
K = int(n)

key = S[K-1]

out=[]
for i,l in enumerate(S):
	if i < N:
		
		if l != key:
			out.append("*")
		elif l =="\n":
			x=1
		else:
			out.append(l)
out1=''
for o in out:
	out1+=o
print(out1)

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

Solution (Python):
n = int(input())
s = input()
t = [i for i in s]
k = int(input())
moji = " "
for j in range(len(t)):
  if t[j] != t[k-1]:
    t[j]="*"

for k in t:
  moji+=k
print(moji)

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

check = S[K-1]

A = []

for i in range(N):
    if check != S[i]:
        A.append("*")
    else:
        A.append(check)
print("".join(A))

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

target = S[K-1]
S = list(S)

for i in range(N):
   if S[i] == target:
       pass
   else:
       S[i] = "*"
        
S = "".join(S)
print(S)

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

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

chk = s[k-1]
for i in range(len(s)):
	if(s[i] != chk):
		s[i] = "*"
	print(s[i],end="")
print("")

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

S_list = list(S)
tmp_letter = S_list[K-1]
for i in range(N):
    if S_list[i] != tmp_letter:
        S_list[i] = '*'

S_changed = "".join(S_list)
print(S_changed)

Solution (Python):



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

target=S[K-1]
ans=""

for i in range(N):
    if S[i]==target:
        ans+=target
    else:
        ans+='*'        
print(ans)

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

sk = s[k-1]
anslis = [s[i] for i in range(n)]
ans = ""

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

for i in range(n):
    ans = ans + str(anslis[i])

print(ans)

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

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

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

a = s[k - 1]

for i in range(n):
    if(s[i] != a):
        list_s[i] = "*"
s_dash = "".join(list_s)
print(s_dash)

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

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

replace = S[K - 1]
list_str = list(S)

for i, data in enumerate(S):
    if data != replace:
        list_str[i] = '*'

S = "".join(list_str)

print(S)

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

for i in s:
    S.append(i)
k=S[K-1]
S=["*" if S[i]!=k else S[i] for i in range(N)]
print("".join(map(str,S)))

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

res = ""

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

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

S=list(S)

K=int(input())

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

S=''.join(S)

print(S)

Solution (Python):

import sys
import os

x,y,z = [input() for i in range(3)]
x = int(x)
z = int(z)

moji = y[z-1]

y = list(y)

for i in range(x):
    if y[i] != moji:
        y[i] = '*'

print("".join(y))

Solution (Python):
import sys
a = []
for l in sys.stdin:
    a.append(l)


word_num = int(a[0])
word = a[1].split()[0]
char_num = int(a[2])

target_char = word[char_num - 1]

result = []
for each_char in word:
    if each_char != target_char:
        result.append('*')
    else:
        result.append(each_char)
result = ''.join(result)
print(result)

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):
import re

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

char = S[K-1]
temp = S.replace(S[K-1], '|')
temp2 = re.sub(r"\w", "*", temp)
print(temp2.replace('|', char))

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

x = S[K-1]
s = [i for i, t in enumerate(S) if t == x]

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

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

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

s = S[K-1]

print "".join(map(lambda x: x if x==s else "*", list(S)))

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

targ=S[K-1]
ans = ""

for i in range(N):
	if S[i]!=targ:
		ans += "*"
	else:
		ans += S[i]


print(ans)

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

num = ord (S [K - 1])

for i in range (N):
    if ord (S [i]) == num:
        print (S [i], end = '')
    else:
        print ('*', end = '')

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

S_list = list(S)

for i in range(N):
    if S_list[i] != S_list[K-1]:
        S_list[i] ="*"
    else:
        continue

S_new = ""
for i in S_list:
    S_new += i

print(S_new)

Solution (Python):



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

 
WRITE = list(S)
CHARA = S[K-1]

 
for i in range(N):
    if S[i] != CHARA:
        S = S[:i] + '*' + S[i+1:]
 
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 += '*'
    else:
        ans += S[i]

print(ans)

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

Solution (Python):
length = int(input())
string = input()
K_str_id = int(input())

K_str = string[K_str_id - 1]

output = ""
for tmp_str in string:
    if tmp_str == K_str:
        output += tmp_str
    else:
        output += "*"
print(output)

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

correct_list = []
for i in S:
   if i != text:
       correct_list.append("*")
   else:
       correct_list.append(i)
print(''.join(correct_list))

Solution (Python):
import re
input()
S=raw_input()
K=input()
a=[]
for i in range(len(S)):
  k=map(lambda x:x.start(),re.finditer(S[K-1],S))
  if i in k:
      a.append(S[i])
  else:
      a.append("*")
print(''.join(a))

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):
a = int(input())
mozi = input()
b = int(input())

test = mozi[b-1]

ans = ""

for i in mozi:
    if i != test:
        ans+="*"
    else:
        ans+=i

print(ans)

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

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

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

k -= 1

target = s[k]

ret = list(s)
for i, item in enumerate(s):
    if item != target:
        ret[i] = "*"
print(''.join(ret))

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

Solution (Python):


N = int(input())
S = list(input())
K = int(input())
a = S[K-1]
ans = []
for k in S:
    if k != a:
        ans.append("*")
    else:
        ans.append(k)

answer = "".join(ans)
print(answer)

Solution (Python):
n=int(input())
s=input()
k=int(input())
a=s[k-1]
t=[]
for i in range(n):
    if(s[i] == a):
        t.append(s[i])
    else:
        t.append('*')
        continue
for j in range(n):
    print(t[j],end='')
print()

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


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

print(t)

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

Solution (Python):
N=int(input())
S=input()
K=int(input())
tmp=S[K-1]
out=[]
for i in range(N):
    if S[i]!=tmp:
        out.append("*")
    else:
        out.append(S[i])
ttt=""
for i in out:
    ttt="{}{}".format(ttt,i)
print(ttt)

Solution (Python):
import sys

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

word = s[k-1]
for i in s:
    if i != word:
        sys.stdout.write('*')
    else:
        sys.stdout.write(i)

Solution (Python):

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

target = S[K - 1]

x = []
for char in S:
    if char != target:
        x.append('*')
    else:
        x.append(char)

print(''.join(x))

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

for s in S:
    if s != S[K-1]:
        s = '*'
    T += s
print(T)

Solution (Python):
n = int(input())
s = input()
k = int(input())
target = s[k-1]
for i, obj in enumerate(s):
    if obj is not target:
        s = s.replace(obj, "*")
print(s)

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

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

print(''.join(s))

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

swap_word = S[K-1]

ans = []
for i in range(N):
  if S[i] != swap_word:
    ans.append("*")
  else:
    ans.append(S[i])

ans_word = ""
for i in range(N):
  ans_word = ans_word + ans[i]

print(ans_word)

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

exa = s[k-1]
for i in s:
    if i != exa:
        s = s.replace(i,'*')
    
print(s)

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

Solution (Python):
len=input()
str=input()
index=input()
safe=str[int(index) - 1]
result = ""
for i in range(int(len)):
    add=safe
    if str[i] != safe:
        add="*"

    result += add

print(result)

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

hogo = list(S)
rewrite = list(S)

cnt = 0
for s in range(0, N):
    if rewrite[s] != (hogo[K - 1]):
        rewrite[cnt] = "*"
    cnt += 1

print(''.join(rewrite))

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

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

a=s[k-1]
t=""

for i in range(n):
    if(s[i]==a):
        t+=a
    else:
        t+="*"

print(t)

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

key = S[K-1]

for i in range(len(S)):
    if not S[i] == key:
        S[i] = '*'

print(''.join(S))

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

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

key = s[k-1]
new_s = ''
for st in s:
    if st != key:
        new_s = new_s + '*'
    else:
        new_s = new_s + key

print(new_s)

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

change_s = S[K-1]
change_after = ""
for n in range(N):
    if S[n] !=change_s:
        change_after += '*'
    else:
        change_after += S[n]
print(change_after)

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

moji=S[K-1]
S_ok=""
for i in range(N):
    now_moji=S[i]
    if now_moji==moji:
        S_ok=S_ok+now_moji
    else:
        S_ok=S_ok+"*"

print(S_ok)