a,b=map(int,input().split())
c=list(input())
c=c[:b-1]+[c[b-1].swapcase()]+c[b:]
print("".join(c)) a,b=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c=list(input()) c list(input()) list input() input c=c[:b-1]+[c[b-1].swapcase()]+c[b:] c c[:b-1]+[c[b-1].swapcase()]+c[b:] c[:b-1]+[c[b-1].swapcase()] c[:b-1] c :b-1 b-1 b 1 [c[b-1].swapcase()] c[b-1].swapcase() [b-1].swapcase [b-1] c b-1 b 1 swapcase c[b:] c b: b print("".join(c)) print "".join(c) "".join "" join c c=list(input()) list(input()) c c=c[:b-1]+[c[b-1].swapcase()]+c[b:] c[:b-1]+[c[b-1].swapcase()]+c[b:] c a,b=map(int,input().split()) map(int,input().split()) a b=map(int,input().split()) map(int,input().split()) b
a,b=map(int,input().split())
c=list(input())
c=c[:b-1]+[c[b-1].swapcase()]+c[b:]
print("".join(c))