N, K = map(int, input().split())
S = input()

list = [s for s in S]

list[K - 1] = list[K - 1].lower()

print(''.join(list)) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K S = input() S input() input s for s in S for s in S s S for s in S s list = [s for s in S] list [s for s in S] list[K - 1] = list[K - 1].lower() list[K - 1] list K - 1 K 1 list[K - 1].lower() [K - 1].lower [K - 1] list K - 1 K 1 lower print(''.join(list)) print ''.join(list) ''.join '' join list K = map(int, input().split()) map(int, input().split()) K list = [s for s in S] [s for s in S] list N, K = map(int, input().split()) map(int, input().split()) N S = input() input() S
N, K = map(int, input().split())
S = input()

list = [s for s in S]

list[K - 1] = list[K - 1].lower()

print(''.join(list))
