n, k = map(int, input().split())
string = str(input())
arr = list(string)
arr[k-1] = arr[k-1].lower()
print(*arr, sep="") n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k string = str(input()) string str(input()) str input() input arr = list(string) arr list(string) list string arr[k-1] = arr[k-1].lower() arr[k-1] arr k-1 k 1 arr[k-1].lower() [k-1].lower [k-1] arr k-1 k 1 lower print(*arr, sep="") print *arr arr sep="" sep "" k = map(int, input().split()) map(int, input().split()) k string = str(input()) str(input()) string n, k = map(int, input().split()) map(int, input().split()) n arr = list(string) list(string) arr
n, k = map(int, input().split())
string = str(input())
arr = list(string)
arr[k-1] = arr[k-1].lower()
print(*arr, sep="")