small = ['a', 'b', 'c']
capital = ['A', 'B', 'C']
 
tmp = input().split(" ")
N = int(tmp[0])
K = int(tmp[1])
str = list(input())
 
str[K - 1] = small[capital.index(str[K - 1])]
 
print("".join(str)) small = ['a', 'b', 'c'] small ['a', 'b', 'c'] 'a' 'b' 'c' capital = ['A', 'B', 'C'] capital ['A', 'B', 'C'] 'A' 'B' 'C' tmp = input().split(" ") tmp input().split(" ") ().split () input split " " N = int(tmp[0]) N int(tmp[0]) int tmp[0] tmp 0 K = int(tmp[1]) K int(tmp[1]) int tmp[1] tmp 1 str = list(input()) str list(input()) list input() input str[K - 1] = small[capital.index(str[K - 1])] str[K - 1] str K - 1 K 1 small[capital.index(str[K - 1])] small capital.index(str[K - 1]) capital.index capital index str[K - 1] str K - 1 K 1 print("".join(str)) print "".join(str) "".join "" join str str = list(input()) list(input()) str N = int(tmp[0]) int(tmp[0]) N small = ['a', 'b', 'c'] ['a', 'b', 'c'] small capital = ['A', 'B', 'C'] ['A', 'B', 'C'] capital tmp = input().split(" ") input().split(" ") tmp K = int(tmp[1]) int(tmp[1]) K
small = ['a', 'b', 'c']
capital = ['A', 'B', 'C']
 
tmp = input().split(" ")
N = int(tmp[0])
K = int(tmp[1])
str = list(input())
 
str[K - 1] = small[capital.index(str[K - 1])]
 
print("".join(str))