N = input()
S = input()
N += "."
f = N.find(" ")
N1 =((N[0:f]))
K =(N[f+1:-1])
N1= int(N1)
S = S[0:N1+1]
S += "."
K= int(K)-1
s = (S[K:K+1])
s= s.lower()
print(S[0:K]+s+S[K+1:-1]) N = input() N input() input S = input() S input() input N += "." N "." f = N.find(" ") f N.find(" ") N.find N find " " N1 =((N[0:f])) N1 N[0:f] N 0:f 0 f K =(N[f+1:-1]) K N[f+1:-1] N f+1:-1 f+1 f 1 -1 N1= int(N1) N1 int(N1) int N1 S = S[0:N1+1] S S[0:N1+1] S 0:N1+1 0 N1+1 N1 1 S += "." S "." K= int(K)-1 K int(K)-1 int(K) int K 1 s = (S[K:K+1]) s S[K:K+1] S K:K+1 K K+1 K 1 s= s.lower() s s.lower() s.lower s lower print(S[0:K]+s+S[K+1:-1]) print S[0:K]+s+S[K+1:-1] S[0:K]+s S[0:K] S 0:K 0 K s S[K+1:-1] S K+1:-1 K+1 K 1 -1 N += "." "." N s= s.lower() s.lower() s N = input() input() N K =(N[f+1:-1]) N[f+1:-1] K S = S[0:N1+1] S[0:N1+1] S S += "." "." S N1 =((N[0:f])) N[0:f] N1 N1= int(N1) int(N1) N1 K= int(K)-1 int(K)-1 K f = N.find(" ") N.find(" ") f S = input() input() S s = (S[K:K+1]) S[K:K+1] s
N = input()
S = input()
N += "."
f = N.find(" ")
N1 =((N[0:f]))
K =(N[f+1:-1])
N1= int(N1)
S = S[0:N1+1]
S += "."
K= int(K)-1
s = (S[K:K+1])
s= s.lower()
print(S[0:K]+s+S[K+1:-1])