N,K=map(int,input().split())

S=list(input())

eng=["a","b","c"]
ENG=["A","B","C"]

x=ENG.index(S[K-1])
S[K-1]=eng[x]

s=""
for i in range(len(S)):
    s+=S[i]
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 eng=["a","b","c"] eng ["a","b","c"] "a" "b" "c" ENG=["A","B","C"] ENG ["A","B","C"] "A" "B" "C" x=ENG.index(S[K-1]) x ENG.index(S[K-1]) ENG.index ENG index S[K-1] S K-1 K 1 S[K-1]=eng[x] S[K-1] S K-1 K 1 eng[x] eng x s="" s "" for i in range(len(S)):
    s+=S[i] i range(len(S)) range len(S) len S s+=S[i] s S[i] S i print(s) print s s+=S[i] S[i] s x=ENG.index(S[K-1]) ENG.index(S[K-1]) x ENG=["A","B","C"] ["A","B","C"] ENG K=map(int,input().split()) map(int,input().split()) K S=list(input()) list(input()) S eng=["a","b","c"] ["a","b","c"] eng N,K=map(int,input().split()) map(int,input().split()) N s="" "" s
N,K=map(int,input().split())

S=list(input())

eng=["a","b","c"]
ENG=["A","B","C"]

x=ENG.index(S[K-1])
S[K-1]=eng[x]

s=""
for i in range(len(S)):
    s+=S[i]
print(s)
