n,k = map(int,input().split())
s = input()
t = chr(ord(s[k - 1]) + 32)
s = s[:k-1] + t + s[k:]
print(s) n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k s = input() s input() input t = chr(ord(s[k - 1]) + 32) t 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 = s[:k-1] + t + s[k:] s s[:k-1] + t + s[k:] s[:k-1] + t s[:k-1] s :k-1 k-1 k 1 t s[k:] s k: k print(s) print s s = input() input() s n,k = map(int,input().split()) map(int,input().split()) n t = chr(ord(s[k - 1]) + 32) chr(ord(s[k - 1]) + 32) t k = map(int,input().split()) map(int,input().split()) k s = s[:k-1] + t + s[k:] s[:k-1] + t + s[k:] s
n,k = map(int,input().split())
s = input()
t = chr(ord(s[k - 1]) + 32)
s = s[:k-1] + t + s[k:]
print(s)