n, k = map(int,input().split())
s = input()
l = s[k - 1]
if l == "A":
    x = s[:(k - 1)] + "a" + s[k:]
elif l == "B":
    x = s[:(k - 1)] + "b" + s[k:]
else:
    x = s[:(k - 1)] + "c" + s[k:]
print(x) n, k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k s = input() s input() input l = s[k - 1] l s[k - 1] s k - 1 k 1 if l == "A":
    x = s[:(k - 1)] + "a" + s[k:]
elif l == "B":
    x = s[:(k - 1)] + "b" + s[k:]
else:
    x = s[:(k - 1)] + "c" + s[k:] l == "A" l "A" x = s[:(k - 1)] + "a" + s[k:] x s[:(k - 1)] + "a" + s[k:] s[:(k - 1)] + "a" s[:(k - 1)] s :(k - 1) k - 1 k 1 "a" s[k:] s k: k elif l == "B":
    x = s[:(k - 1)] + "b" + s[k:] l == "B" l "B" x = s[:(k - 1)] + "b" + s[k:] x s[:(k - 1)] + "b" + s[k:] s[:(k - 1)] + "b" s[:(k - 1)] s :(k - 1) k - 1 k 1 "b" s[k:] s k: k x = s[:(k - 1)] + "c" + s[k:] x s[:(k - 1)] + "c" + s[k:] s[:(k - 1)] + "c" s[:(k - 1)] s :(k - 1) k - 1 k 1 "c" s[k:] s k: k print(x) print x n, k = map(int,input().split()) map(int,input().split()) n x = s[:(k - 1)] + "a" + s[k:] s[:(k - 1)] + "a" + s[k:] x k = map(int,input().split()) map(int,input().split()) k s = input() input() s x = s[:(k - 1)] + "b" + s[k:] s[:(k - 1)] + "b" + s[k:] x l = s[k - 1] s[k - 1] l x = s[:(k - 1)] + "c" + s[k:] s[:(k - 1)] + "c" + s[k:] x
n, k = map(int,input().split())
s = input()
l = s[k - 1]
if l == "A":
    x = s[:(k - 1)] + "a" + s[k:]
elif l == "B":
    x = s[:(k - 1)] + "b" + s[k:]
else:
    x = s[:(k - 1)] + "c" + s[k:]
print(x)