n,k=map(int,input().split());s=input();print(*[s[i] if k-1!=i else s[i].lower() for i in range(n)],sep='') s[i] if k-1!=i else s[i].lower() for i in range(n) for i in range(n) i range(n) range n for i in range(n) s[i] if k-1!=i else s[i].lower() k-1!=i k-1 k 1 i s[i] s i s[i].lower() [i].lower [i] s i lower n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k s=input() s input() input print(*[s[i] if k-1!=i else s[i].lower() for i in range(n)],sep='') print *[s[i] if k-1!=i else s[i].lower() for i in range(n)] [s[i] if k-1!=i else s[i].lower() for i in range(n)] sep='' sep '' n,k=map(int,input().split()) map(int,input().split()) n k=map(int,input().split()) map(int,input().split()) k s=input() input() s
n,k=map(int,input().split());s=input();print(*[s[i] if k-1!=i else s[i].lower() for i in range(n)],sep='')