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

S[K-1] = chr(ord(S[K-1]) + 32)
S = "".join(S)
print(S) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K S = list(str(input())) S list(str(input())) list str(input()) str input() input S[K-1] = chr(ord(S[K-1]) + 32) S[K-1] S K-1 K 1 chr(ord(S[K-1]) + 32) chr ord(S[K-1]) + 32 ord(S[K-1]) ord S[K-1] S K-1 K 1 32 S = "".join(S) S "".join(S) "".join "" join S print(S) print S S = list(str(input())) list(str(input())) S N, K = map(int, input().split()) map(int, input().split()) N S = "".join(S) "".join(S) S K = map(int, input().split()) map(int, input().split()) K
N, K = map(int, input().split())
S = list(str(input()))

S[K-1] = chr(ord(S[K-1]) + 32)
S = "".join(S)
print(S)