n,k = map(int, input().split())
s = list(input())
r = s[k-1].lower()
del s[k-1]
s.insert(k-1, r)
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(input()) s list(input()) list input() input r = s[k-1].lower() r s[k-1].lower() [k-1].lower [k-1] s k-1 k 1 lower del s[k-1] s[k-1] s k-1 k 1 s.insert(k-1, r) s.insert s insert k-1 k 1 r S = ''.join(s) S ''.join(s) ''.join '' join s print(S) print S S = ''.join(s) ''.join(s) S n,k = map(int, input().split()) map(int, input().split()) n k = map(int, input().split()) map(int, input().split()) k s = list(input()) list(input()) s r = s[k-1].lower() s[k-1].lower() r
n,k = map(int, input().split())
s = list(input())
r = s[k-1].lower()
del s[k-1]
s.insert(k-1, r)
S = ''.join(s)
print(S)