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

temp = s[k-1]
if temp == "A":
    s[k-1] = "a"
elif temp == "B":
    s[k-1] = "b"
else:
    s[k-1] = "c"

print(''.join(s)) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k s = list(input()) s list(input()) list input() input temp = s[k-1] temp s[k-1] s k-1 k 1 if temp == "A":
    s[k-1] = "a"
elif temp == "B":
    s[k-1] = "b"
else:
    s[k-1] = "c" temp == "A" temp "A" s[k-1] = "a" s[k-1] s k-1 k 1 "a" elif temp == "B":
    s[k-1] = "b" temp == "B" temp "B" s[k-1] = "b" s[k-1] s k-1 k 1 "b" s[k-1] = "c" s[k-1] s k-1 k 1 "c" print(''.join(s)) print ''.join(s) ''.join '' join s n, k = map(int, input().split()) map(int, input().split()) n s = list(input()) list(input()) s k = map(int, input().split()) map(int, input().split()) k temp = s[k-1] s[k-1] temp
n, k = map(int, input().split())
s = list(input())

temp = s[k-1]
if temp == "A":
    s[k-1] = "a"
elif temp == "B":
    s[k-1] = "b"
else:
    s[k-1] = "c"

print(''.join(s))
