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**



Sample input:
5
error
2


Sample output:
*rr*r

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
K=int(input())
letter=""

for i in S:
    if i is S[K]:
        letter +=i
    else:
        letter +="*"
print(letter)

Submission status: Runtime Error

Solution code:
input()
S = input()
k = int(input())
for s in S:print(s if s==S[k=1] else "*",end="")

Submission status: Runtime Error

Solution code:
N=int(input())
S=str(input())
K=int(input())
s=list(S)
t=s[K]
a=''
for i in range(N):
  if s[i]!=t:
    s[i]='*'
  a+=s[i]
print(a)

Submission status: Runtime Error

Solution code:
a = int(input())
b = list(input())
c = int(input())
for i in range(a):
  if b[i] != b[c]:
    b[i] = "*"
print("".join(b))

Submission status: Runtime Error

Solution code:
a = int(input())
b = input()
c = int(input())
for i in range(a):
  if b[i] != b[c]:
    b[i] = "*"
print(b)

Submission status: Runtime Error

Solution code:
n = int(input())
s = [i for i in input()]
k = int(input())
g = s[k]

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

print("".join(s))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
for i in range(n):
  if s[i] == s[k]:
    s[i] = '*'
    print(s[i], end = '')

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
for i in range(n):
  if s[i] == s[k]:
    s[i] = '*'

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
input()
S=input()
K=int(input())
for s in S:
  if s=!S[k-1]:
    s
  else:
    '*'
print(S)

Submission status: Runtime Error

Solution code:
9
education
7

Submission status: Runtime Error

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

s = list(map(lambda x: '*' if x != s[k] else x, s))

print(*s, sep='')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
O, E = [input() for _ in range(2)]
E += ""

length = max(len(O), len(E))

for i in range(length):
    print(O[i], end='')
    print(E[i], end='')

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
k=int(input())
s_=str()
for i in range(n):
  if s[i]!=s[k+1]:
    s_+='*'
  else:
    s_+=s[i]

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
n=int(input())
s=list(input())
k=int(input())
for i in s:
      if i != s[k-1]:
          s_replace=s.replace(i,'*')
print(s_replace)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s =[input() for i in range(n)]
k = int(input())
for i in range(n):
    if not s[i]  == s[k-1]:
        s[i] = '*'
print(s)

Submission status: Runtime Error

Solution code:
n = int(input())
s =[input() for i in range(n)]
k = int(input())
for i in range(n) :
    if not s[i]  == s[k-1]:
        s[i] = '*'
print(s)

Submission status: Runtime Error

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

print(s)

Submission status: Runtime Error

Solution code:
n = int(input())
s =[input() for i in range(n)]
k = int(input())
for i in range(n) :
    if not s[i] == s[k-1]:
        s[i] = '*'

print(s)

Submission status: Runtime Error

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

print(s)

Submission status: Runtime Error

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

print(s)

Submission status: Runtime Error

Solution code:
n = int(input())
s =[input() for i in range(n)]
k = int(input())
for k in range(n) :
    if s[k-1]  != s[n-1]:
        s[n-1] = s[k-1]

print(s)

Submission status: Runtime Error

Solution code:
N = int(input())
S = [str(x) for x in input().split()]
K = int(input())
for a in range(N):
    if not S[a] == S[K - 1]:
        S[a] = '*'
print(''.join(S))

Submission status: Runtime Error

Solution code:
Length = int(input())
inputString = input()
SpecialIndex = int(input())

for i in inputString:
  if i != inputString[SpecialIndex-1]:
    inputString[i] = "*"
print(inputString)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
for i in s:
    if i == s[k]:
        print(i, end="")
    else:
        print("*", end="")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
K=int(input())
for i in S:
  if S[K-1]==S[i]:
    S[i]='*'
print(S)

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
K=int(input())
for i in S:
  if S[K]==S[i]:
    S[i]='*'
print(S)

Submission status: Runtime Error

Solution code:
n = int(input())
str = input()
k = int(input())

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
S = list(str(input()))
K = int(input())

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

Submission status: Runtime Error

Solution code:
n,k=map(int,input().split())
m=map(str,input())
A=m[k-1]
for i in range(n):
    if m[i]!=A:
        m.replace(m[i],'*')
print(m)

Submission status: Runtime Error

Solution code:
n,k=map(int,input().split())
m=map(str,input())
A=m[k-1]
for i in range(n):
    if m[i]==A:
        continue
        if m[i]!=A:
            m.replace(m[i],'*')
print(m)

Submission status: Runtime Error

Solution code:
n,l=map(int,input().split())
m=map(str,input())
A=m[l-1]
for i in range(5):
    if m[i]==A:
        continue
        if m[i]!=A:
            m.replace(m[i],'*')
print(m)

Submission status: Runtime Error

Solution code:
n,l=map(int,input().split())
m=map(str,input())
A=m[l-1]
for i in range(5):
    if m[i]==A:
        continue
        if m[i]!=A:
            m[i]='*'
print(m)

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
print('Yes' if min(a,b)<c<max(a,b) else 'No')

Submission status: Runtime Error

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

kc = S[K]
ans = ''
for c in S:
  if c != kc:
    ans += '*'
  else:
    ans += c

print(ans)

Submission status: Runtime Error

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

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

print(str.join('', S))

Submission status: Runtime Error

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

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

print(S)

Submission status: Runtime Error

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

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

print(S)

Submission status: Runtime Error

Solution code:
input()
B = input()
k = int(input())
for v in B:
    print(B if k[k-1] == B else "*",end="")

Submission status: Runtime Error

Solution code:
A = int(input())
B = input()
k = int(input())
for v in B:
    print(B if k[k-1] == B else "*",end="")

Submission status: Runtime Error

Solution code:
A = int(input())
B = input()
k = int(input())
for v in B:
    print(B if k[k-1] == B else "*")

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())
K = int(input())
ans = ""
for i in range(0, N):
    if(S[i] != S[K]):
        ans += "*"
    else:
        ans += S[K]
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
ss = ''
for i in range(n):
	if s[i] == s[k]:
		ss += s[i]
	else:
		ss += '*'
print(ss)

Submission status: Runtime Error

Solution code:
input()
s = list(input())
print("".join(("*" if x != y else x for x in s[int(input())] for y in s )))

Submission status: Runtime Error

Solution code:
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main(){
  int n,k;
  string s;
  cin >> n >> s >> k;
  
  for(int i=0;i<n;i++){
    if(s[k-1]!=s[i]){
      s[i] = '*';
  }
  }
  cout << s << endl;
  return 0;
}

Submission status: Runtime Error

Solution code:
n = int(input())
st = input()
r = int(input())

key = st[r-1]

for i in range(n):
  if st[i] == key:
    st[i] = "*"
print("".join(st))

Submission status: Runtime Error

Solution code:
def solve(n, s, k):
    return "".join([("*" if s[i] != s[k] else s[i]) for i in range(n)])

n = int(input())
s = input()
k = int(input())
print(solve(n, s, k))

Submission status: Runtime Error

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

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

print(S.join())

Submission status: Runtime Error

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

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

print(S)

Submission status: Runtime Error

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

x = s[k]
temp_list = []

for c in s:
  if c is not x:
    temp_list.append('*')
  else:
    temp_list.append(c)

print(''.join(temp_list))

Submission status: Runtime Error

Solution code:
from functools import reduce

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

print(reduce(lambda x, y: x + (y if y == S[K] else '*'), S, ''))

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
for a in range(n) :
    if s[a] != s[k] :
        s = s[:a]+"*"+s[a+1:]
print(s)

Submission status: Runtime Error

Solution code:
N = int(input())

S = str(input())

K = int(input())

Char = []

#Muita gambiarra! lol

for i in range(len(S)-(len(S)-N)):

	Char.append(S[i])	if Char[i] != S[K-1]:

		Char[i] = '*'

for i in Char:

	print(i,end='')

Submission status: Runtime Error

Solution code:
a = int(input())
s = input()
k = int(input())

t = ["*"]*a
aa = s[k]
for f,i in enumerate(s):
  if i == aa:
    t[f] = i
print("".join(t))

Submission status: Runtime Error

Solution code:
a = int(input())
s = input()
k = int(input())

t = ["*"]*a
aa = s[k]
for f,i in enumerate(s):
  if i == aa:
    t[f] = i
print(" ".join(aa))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input()) - 1
z = s[k]
for a in n:
  if s[a] != z:
    s[a]="*"
print(s)

Submission status: Runtime Error

Solution code:
#coding:utf-8

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

base = S[K]
new = []

for i in range(N):
    if S[i] != base:
        new.append('*')
    else:
        new.append(base)

ans = ''.join(new)
print(ans)

Submission status: Runtime Error

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

moji = s[k-1]

for ss in s:
	if s[ss]!=moji:
		s[ss]='*'

print(str(s))

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
c = s[k-1]
i = s.find(c)
s2 = "*"*n
for n in i:
	s2[n] = c
print(s2)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
c = s[k-1]
i = s.find(c)
s2 = "*"*n
s2[i] = c
print(s2)

Submission status: Runtime Error

Solution code:
N=input()
S=input()
K=input()
C=S[K-1]
S_=''
for c in S:
  if c == C:
    S_+=c
  else:
    S_+="*"
print(S_)

Submission status: Runtime Error

Solution code:


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

moji = S[K]

result = ''
for s in S:
    if s == moji:
        result+=s
    else:
        result+='*'
print(result)

Submission status: Runtime Error

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

compare_str = S[K - 1]
result_str = ''
for s in list(S):
    if compare_str == s:
	result_str += s
    else:
	result_str += '*'
print(result_str)

Submission status: Runtime Error

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

for i in range(N):
    if S[i] == S[K]:
        pass
    else:
        S[i] = '*'
print(''.join(map(str, S)))

Submission status: Runtime Error

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

key = s[k]
result =""
for letter in s:
    if letter == key:
        result = result + key
    else:
        result =result +  "*"

print(result)

Submission status: Runtime Error

Solution code:
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))

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
K = int(input())
 
for i,s in enumerate(S):
  if s!=S[K-1]:
    S[i]='*'

print(S)

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
k=int(input())
for i in s:
  if i == s[k]:
  else:
    s = s.replace(i,'*')

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
k=int(input())
num = 0
for i in s:
  if i == s[k]:
    num +=1
  else:
    s = s.replace(i,'*')
    num +=1

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
k=int(input())
num = 0
for i in s:
  print(i)
  if i == s[k]:
    num +=1
  else:
    s = s.replace(i,'*')
    num +=1

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
k=int(input())
num = 0
for i in s:
  print(i)
  if i == s[k]:
    num +=1
  else:
    s = s.replace(s[num],'*')
    num +=1

Submission status: Runtime Error

Solution code:
in_data = [input() for i in range(3)] 
 
n = int(in_data[0])
s = in_data[1]
k = int(in_data[2])




target_c = s[k]
new_s = ''
for c in s:
    if c == target_c:
        new_s += c
    else:
        new_s += '*'
 
print(new_s)

Submission status: Runtime Error

Solution code:
n, s, k = (int(i) for i in input().split())  


target_c = s[k]
new_s = ''
for c in s:
    if c == target_c:
        new_s += c
    else:
        new_s += '*'

print(new_s)

Submission status: Runtime Error

Solution code:
import re
# イテレーションのため
input()
S = input()
K = int(input())

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = str(input())
k = int(input())-1

c = s[k]

out = ""

for i in s:
    if i == c:
        out += i
    else:
        out += "*"

print(out

Submission status: Runtime Error

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

c = s[k]

out = ""

for i in s:
    if i == c:
        out += i
    else:
        out += "*"

print(out)

Submission status: Runtime Error

Solution code:
n = int(input())
list =list(input())
m = ""
j = int(input())
for i in range(n):
  if list[i] == list[j]:
    m += list[j]
  else:
    m += "*"
print(m)

Submission status: Runtime Error

Solution code:
N = int(input())
S = list(input())
K = int(input())
for i in range(N):
  if S[i] != S[K]:
    S[i] = "*"
print("".join(S))

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
K = int(input())
for i in range(N):
  if S[i] != S[K]:
    S[i] = "*"
print(S)

Submission status: Runtime Error

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


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

print(s)

Submission status: Runtime Error

Solution code:
var
	n,k,i: Longint;
	s:String;
begin
	readln(n);
	readln(s);
	readln(k);
	for i:=1 to n do begin
		if s[i]<>s[k]then write('*')else write(s[i]);
	end;
	writeln;
end.

Submission status: Runtime Error

Solution code:
var
	n,k,i:Shortint;
	s:String;
begin
	readln(n);
	readln(s);
	readln(k);
	for i:=1 to n do begin
		if s[i]<>s[k]then write('*')else write(s[i]);
	end;
	writeln;
end.

Submission status: Runtime Error

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

target_char = s[k]

out = ""
for s_i in s:
	if s_i != target_char:
		out += "*"
	else:
		out += s_i

print(out)

Submission status: Runtime Error

Solution code:
import math
import sys
N = int(input())
s = input()
k = int(input())
t = s[k-1]
u = ""
for i in s:
    if s[i] == t:
        u += s[i]
    else :
        u += '*'
print(u)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
w = s[k]
ss = ""
for i in range(n):
    if(s[i] == w):
        ss += w
    else:
        ss += "*"
print(ss)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
ss = []
for i in range(n):
    if(s[k] != s[i]):
        ss[i] = "*"
    else:
        ss[i] = s[k]
print(''.join(ss))

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
ss = []
for i in range(n):
    if(s[k] != s[i]):
        ss[i] = "*"
    else:
        ss[i] = s[k]
print(.join(ss))

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
ss = ""
for i in range(n):
    if(s[k] != s[i]):
        ss = ss + "*"
    else:
        ss = ss + s[k]
print(ss)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
ss = ""
for i in range(n):
    if(s[k] != s[i]):
        ss[i] = "*"
    else:
        ss[i] = s[k]
print(ss)

Submission status: Runtime Error

Solution code:
import re

n = int(input())
s = input()
k = int(input())
print(re.sub(^s[k],"*",s))

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
w = s[k]
ss = s.replace(w,"*")
print(ss)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
w = s[k]
for i in range(n):
    if(s[i] != w):
        s[i] = "*"
print(s)

Submission status: Runtime Error

Solution code:
k = int( input())
s = list(str(input()))
n = int( input())
  
for i in range(len(s)):
    if s[i] != s[n+1]:
        s[i] = "*"
          
print(s)

Submission status: Runtime Error

Solution code:
k = int( input())
s = list(str(input()))
n = int( input())
  
for i in range(len(s)):
	if s[i] != s[n-1]:
	s[i] = "*"
          
print(s)

Submission status: Runtime Error

Solution code:
A = int(input())
B = input()
C = int(input())
d = b[k-1]
new = [e for e in b if e != d]
while(len(new)>i):
  f = new[i]
  b[f] = '*'
  i = i+1
print(b)

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
K=int(input())
T=S[K+1]
ans=""
for s in S:
  if s!=T:
    ans+="*"
  else:
    ans+=s
print(ans)

Submission status: Runtime Error

Solution code:
N=int(input())
S=innput()
K=int(input())
T=S[K+1]
ans=""
for s in S:
  if s!=T:
    ans+="*"
  else:
    ans+=s
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
k = int(input())
c = s[k-1]
for i in range(len(s)):
  if not s[i] == c:
    s[i] = c
print(s)

Submission status: Runtime Error

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

	print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
S = list(map(str,input().split()))
K = int(input())

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

Submission status: Runtime Error

Solution code:
import sys
import re
 
line1, line2, line3 = [sys.stdin.readline().strip() for i in range(3)]
line3 = int(line3)
line2 = str(line2)
not_strip_str = line2[line3 - 1]
strip_str = line2.replace(not_strip_str, "")
new = re.sub(r"[{}]".format(strip_str), "*", line2)
 
print(new)

Submission status: Runtime Error

Solution code:
import sys
import re

line1, line2, line3 = [sys.stdin.readline().strip() for i in range(3)]
line3 = int(line3)
line2 = str(line2)
not_strip_str = line2[line3 - 1]
strip_str = line2.replace(not_strip_str, "")
new = re.sub("[{}]".format(strip_str), "*", line2)

print(new)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import re

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

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

Submission status: Runtime Error

Solution code:
# TPBC201B - *e**** ********e* *e****e* ****e**
n = int(input())
s = list(input())
k = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())
K = int(input())
#N = 5
#S = "error"
S = list(S)
#K = 2
char = S[K]
for i in range(len(S)):
    if S[i] != char:
        S[i] = "*"
print(''.join(S))

Submission status: Runtime Error

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

ans = ''
for i in S:
    if i == S[K]:
        ans += i
    else:
        ans += '*'

print(ans)

Submission status: Runtime Error

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

ans = ''
for i in S:
    if i == S[K]
        ans += i
    else:
        ans += '*'

print(ans)

Submission status: Runtime Error

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

s = str(S[K])
ans = ''
for i in range(N):
    if (S[i] in s) == 'True':
        ans += s
    else:
        ans += '*'

print(ans)

Submission status: Runtime Error

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

s = S[K]
for i in range(N):
    if (S[i] in s) == 'True':
        pass
    else:
        S[i].replace(s,'*')

print(S)

Submission status: Runtime Error

Solution code:
a = input()
b = a.splitlines()
N = int(b[0])
S = list(b[1])
K = int(b[2])
lit = S[K-1]
for i in range(N):
  if S[i] != lit:
    S[i] = '*'

print(''.join(S))

Submission status: Runtime Error

Solution code:
a = input()
b = a.split()
N = int(b[0])
S = list(b[1])
K = int(b[2])
lit = S[K-1]
for i in range(N):
  if S[i] != lit:
    S[i] = '*'

print(''.join(S))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
m=min(s.count('.'),s.count('#'))
if s[0]=='.' and s[n-1]=='#':
  m=m-1
elif s[0]=='.' and s.count('.')<=s.count('#'):
  m=m-1
elif s[n-1]=='#' and s.count('.')=>s.count('#'):
  m=m-1
else:
  m=m
print(m)

Submission status: Runtime Error

Solution code:
n=int(input())
s=input().split()
k=int(input())
for i in range(n):
  if s[i]!=s[k-1]:
    s[i]='b'
  else:
    s[i]=s[i]
t=''.join(s)
print(t.replace('b','*'))

Submission status: Runtime Error

Solution code:
n=int(input())
s=input().split()
k=int(input())
for i in range(n):
  if s[i]!=s[k-1]:
    s[i]='b'
t=''.join(s)
print(t.replace('b','*'))

Submission status: Runtime Error

Solution code:
n=int(input())
s=input().split()
k=int(input())
for i in range(n):
  if s[i]!=s[k]:
    s[i]='b'
t=''.join(s)
print(t.replace('b','*'))

Submission status: Runtime Error

Solution code:
n=int(input())
s=input().split()
k=int(input())
for i in range(n):
  if s[i]!=s[k]:
    s[i]='b'
t=s.replace('b','*')
print(''.join(t))

Submission status: Runtime Error

Solution code:
n=int(input())
s=input().split()
k=int(input())
for i in range(n):
  if s[i]!=a:
    s[i]='b'
t=s.replace('b','*')
print(''.join(t))

Submission status: Runtime Error

Solution code:
n=int(input())
s=list(input().split())
k=int(input())
a=s[k]
for i in range(n):
  if s[i]!=a:
    s[i]='b'
t=s.replace('b','*')
print(''.join(t))

Submission status: Runtime Error

Solution code:
import sys

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

    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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
s=input
k=int(input())
for i in len(s):
	if s[i]!=s[k]:
		s[i]=*

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
k=int(input())
a=s[k]
for i in range(n):
  if s[i]!=a:
    s=s[:i]+'*'+s[i+1:]
  else:
    s=s
print(s)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = input()
c = int(input())
d = b[k-1]
new = [e for e in b if e != d]
while(len(new)>i):
  f = new[i]
  b[f] = '*'
  i = i+1
print(b)

Submission status: Runtime Error

Solution code:
n = int(input())
s = str(input())
k = int(input())
m = s[k]
sp = list(s)
for b in range(n):
    if sp[b] == m:
        print(s[b],end="")
    else:
        print("*",end="")

Submission status: Runtime Error

Solution code:
n, s, k  = input().split()
s_list = list(s)
k = int(k) - 1
print(n)
print(s)
print(k)
answer_list = []
if len(s_list) == int(n):
    for s in s_list:
        if not s == s_list[k]:
            s = '*'
        answer_list.append(s)
    answer_list = ''.join(answer_list)
    print(answer_list)

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
k=int(input())
a=s[k]
if n==1:
  print(s)
else:
  if s[0]!=a:
    s='*'+s[1:]
  else:
    s=s
  if s[n-2]!=a:
    s=s[:n-2]+'*'+s[n-1]
  else:
    s=s
  if s[n-1]!=a:
    s=s[:n-1]+'*'
  else:
    s=s
  for i in range(1,n-2):
    if s[i]!=a:
      s=s[:i]+'*'+s[i+1:]
    else:
      s=s
print(s)

Submission status: Runtime Error

Solution code:
n, s, k  = input().split()
s_list = list(s)
k = int(k) - 1
print(n)
print(s)
print(k)
answer_list = []
for s in s_list:
    if not s == s_list[k]:
        s = '*'
    answer_list.append(s)
answer_list = ''.join(answer_list)
print(answer_list)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a = input()
b = a.split()
N = int(b[0])
S = list(b[1])
K = int(b[2])
lit = S[K-1]
for i in range(N):
  if S[i] != lit:
    S[i] = '*'
print(''.join(S))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = 0
a = int(input())
b = input()
c = 0
c = int(input())
d = b[k-1]
new = [e for e in b if e != d]
while(len(new)>i):
  f = new[i]
  b[f] = '*'
  i = i+1
print(b)

Submission status: Runtime Error

Solution code:
a = int(input())
b = input()
c = int(input())
d = b[k-1]
new = [e for e in b if e != d]
while(len(new)>i):
  f = new[i]
  b[f] = '*'
  i = i+1
print(b)

Submission status: Runtime Error

Solution code:
from sys import stdin
N = int(input())
S = input()
K = int(input())
def search():
  val = S[K]
  for x in range(1, N):
    if S[x] != val:
      S[x] = *
  return S
print(search())

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = input()
c = int(input())
d = b[k-1]
new = [e for e in b if e != d]
while(len(new)>i):
  f = new[i]
  b[f] = '*'
  i++
print(b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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