n, k = map(int, input().split())
s = input()
res = []
for i in s:
  res.append(i)
if res[k-1] == 'A':
  res[k-1] = 'a'
elif res[k-1] == 'B':
  res[k-1] = 'b'
else:
  res[k-1] = 'c'
print(*res, 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 res = [] res [] for i in s:
  res.append(i) i s res.append(i) res.append res append i if res[k-1] == 'A':
  res[k-1] = 'a'
elif res[k-1] == 'B':
  res[k-1] = 'b'
else:
  res[k-1] = 'c' res[k-1] == 'A' res[k-1] res k-1 k 1 'A' res[k-1] = 'a' res[k-1] res k-1 k 1 'a' elif res[k-1] == 'B':
  res[k-1] = 'b' res[k-1] == 'B' res[k-1] res k-1 k 1 'B' res[k-1] = 'b' res[k-1] res k-1 k 1 'b' res[k-1] = 'c' res[k-1] res k-1 k 1 'c' print(*res, sep='') print *res res sep='' sep '' s = input() input() s n, k = map(int, input().split()) map(int, input().split()) n res = [] [] res k = map(int, input().split()) map(int, input().split()) k
n, k = map(int, input().split())
s = input()
res = []
for i in s:
  res.append(i)
if res[k-1] == 'A':
  res[k-1] = 'a'
elif res[k-1] == 'B':
  res[k-1] = 'b'
else:
  res[k-1] = 'c'
print(*res, sep='')