N,k = (int(x) for x in input().split())
S = list(input())
if S[k-1] == "A":
  S[k-1] = "a"
elif S[k-1] == "B":
  S[k-1] = "b"
else:
  S[k-1] = "c"
print("".join(S)) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N,k = (int(x) for x in input().split()) N (int(x) for x in input().split()) k S = list(input()) S list(input()) list input() input if S[k-1] == "A":
  S[k-1] = "a"
elif S[k-1] == "B":
  S[k-1] = "b"
else:
  S[k-1] = "c" S[k-1] == "A" S[k-1] S k-1 k 1 "A" S[k-1] = "a" S[k-1] S k-1 k 1 "a" elif S[k-1] == "B":
  S[k-1] = "b" S[k-1] == "B" S[k-1] S k-1 k 1 "B" S[k-1] = "b" S[k-1] S k-1 k 1 "b" S[k-1] = "c" S[k-1] S k-1 k 1 "c" print("".join(S)) print "".join(S) "".join "" join S S = list(input()) list(input()) S N,k = (int(x) for x in input().split()) (int(x) for x in input().split()) N k = (int(x) for x in input().split()) (int(x) for x in input().split()) k
N,k = (int(x) for x in input().split())
S = list(input())
if S[k-1] == "A":
  S[k-1] = "a"
elif S[k-1] == "B":
  S[k-1] = "b"
else:
  S[k-1] = "c"
print("".join(S))