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

s = input()

if s[k-1] == 'A':
    t = 'a'
elif s[k-1] == 'B':
    t = 'b'
elif s[k-1] == 'C':
    t = 'c'

s = s[:k-1] + t + s[k:]

print(s) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k s = input() s input() input if s[k-1] == 'A':
    t = 'a'
elif s[k-1] == 'B':
    t = 'b'
elif s[k-1] == 'C':
    t = 'c' s[k-1] == 'A' s[k-1] s k-1 k 1 'A' t = 'a' t 'a' elif s[k-1] == 'B':
    t = 'b' s[k-1] == 'B' s[k-1] s k-1 k 1 'B' t = 'b' t 'b' elif s[k-1] == 'C':
    t = 'c' s[k-1] == 'C' s[k-1] s k-1 k 1 'C' t = 'c' t 'c' s = s[:k-1] + t + s[k:] s s[:k-1] + t + s[k:] s[:k-1] + t s[:k-1] s :k-1 k-1 k 1 t s[k:] s k: k print(s) print s t = 'c' 'c' t k = map(int, input().split()) map(int, input().split()) k s = s[:k-1] + t + s[k:] s[:k-1] + t + s[k:] s s = input() input() s n, k = map(int, input().split()) map(int, input().split()) n t = 'b' 'b' t t = 'a' 'a' t
n, k = map(int, input().split())

s = input()

if s[k-1] == 'A':
    t = 'a'
elif s[k-1] == 'B':
    t = 'b'
elif s[k-1] == 'C':
    t = 'c'

s = s[:k-1] + t + s[k:]

print(s)