_, k = map(int,raw_input().split())
k-=1
s = list(raw_input())
s[k] = s[k].lower()
print ''.join(s) _, k = map(int,raw_input().split()) _ map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split k k-=1 k 1 s = list(raw_input()) s list(raw_input()) list raw_input() raw_input s[k] = s[k].lower() s[k] s k s[k].lower() [k].lower [k] s k lower print ''.join(s) ''.join '' join s k-=1 1 k s = list(raw_input()) list(raw_input()) s k = map(int,raw_input().split()) map(int,raw_input().split()) k _, k = map(int,raw_input().split()) map(int,raw_input().split()) _
_, k = map(int,raw_input().split())
k-=1
s = list(raw_input())
s[k] = s[k].lower()
print ''.join(s)