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

T = [s for s in S]
T[K - 1] = T[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 s for s in S for s in S s S for s in S s T = [s for s in S] T [s for s in S] T[K - 1] = T[K - 1].lower() T[K - 1] T K - 1 K 1 T[K - 1].lower() [K - 1].lower [K - 1] T 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 = [s for s in S] [s for s in S] T
N, K = list(map(int, input().split()))
S = input()

T = [s for s in S]
T[K - 1] = T[K - 1].lower()
print("".join(T)) 