n,k=map(int,input().split())
s=input()

S=list(s)
a=S[k-1]
b=a.lower()
S[k-1]=b

print(*S,sep='') n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k s=input() s input() input S=list(s) S list(s) list s a=S[k-1] a S[k-1] S k-1 k 1 b=a.lower() b a.lower() a.lower a lower S[k-1]=b S[k-1] S k-1 k 1 b print(*S,sep='') print *S S sep='' sep '' n,k=map(int,input().split()) map(int,input().split()) n b=a.lower() a.lower() b s=input() input() s S=list(s) list(s) S k=map(int,input().split()) map(int,input().split()) k a=S[k-1] S[k-1] a
n,k=map(int,input().split())
s=input()

S=list(s)
a=S[k-1]
b=a.lower()
S[k-1]=b

print(*S,sep='')
