Omoji = ['A','B','C']
Kmoji = ['a','b','c']
n,k = map(int,input().split())
s = str(input())
ans = ''
for i in range(n):
    if i==(k-1):
        for j in range(len(Omoji)):
            if s[i]==Omoji[j]:
                ans += Kmoji[j]
    else:
        ans += s[i]
print(ans) Omoji = ['A','B','C'] Omoji ['A','B','C'] 'A' 'B' 'C' Kmoji = ['a','b','c'] Kmoji ['a','b','c'] 'a' 'b' 'c' n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k s = str(input()) s str(input()) str input() input ans = '' ans '' for i in range(n):
    if i==(k-1):
        for j in range(len(Omoji)):
            if s[i]==Omoji[j]:
                ans += Kmoji[j]
    else:
        ans += s[i] i range(n) range n if i==(k-1):
        for j in range(len(Omoji)):
            if s[i]==Omoji[j]:
                ans += Kmoji[j]
    else:
        ans += s[i] i==(k-1) i k-1 k 1 for j in range(len(Omoji)):
            if s[i]==Omoji[j]:
                ans += Kmoji[j]
     j range(len(Omoji)) range len(Omoji) len Omoji if s[i]==Omoji[j]:
                ans += Kmoji[j]
     s[i]==Omoji[j] s[i] s i Omoji[j] Omoji j ans += Kmoji[j] ans Kmoji[j] Kmoji j ans += s[i] ans s[i] s i print(ans) print ans s = str(input()) str(input()) s Omoji = ['A','B','C'] ['A','B','C'] Omoji Kmoji = ['a','b','c'] ['a','b','c'] Kmoji ans = '' '' ans n,k = map(int,input().split()) map(int,input().split()) n ans += Kmoji[j] Kmoji[j] ans ans += s[i] s[i] ans k = map(int,input().split()) map(int,input().split()) k
Omoji = ['A','B','C']
Kmoji = ['a','b','c']
n,k = map(int,input().split())
s = str(input())
ans = ''
for i in range(n):
    if i==(k-1):
        for j in range(len(Omoji)):
            if s[i]==Omoji[j]:
                ans += Kmoji[j]
    else:
        ans += s[i]
print(ans)