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