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

tmp = s.pop(k - 1)
l = tmp.lower()
s.insert(k - 1, l)
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 tmp = s.pop(k - 1) tmp s.pop(k - 1) s.pop s pop k - 1 k 1 l = tmp.lower() l tmp.lower() tmp.lower tmp lower s.insert(k - 1, l) s.insert s insert k - 1 k 1 l print(''.join(s)) print ''.join(s) ''.join '' join s n, k = map(int, input().split()) map(int, input().split()) n k = map(int, input().split()) map(int, input().split()) k tmp = s.pop(k - 1) s.pop(k - 1) tmp l = tmp.lower() tmp.lower() l s = list(input()) list(input()) s
n, k = map(int, input().split())
s = list(input())

tmp = s.pop(k - 1)
l = tmp.lower()
s.insert(k - 1, l)
print(''.join(s))
