change_K = int(input().split(" ")[-1])
word_S = list(input())
S = list(word_S)
word1 = ""
for i in range(change_K - 1):
    word1 = word1 + S[i]
word2 = S[change_K - 1]
word3 = ""
count = 0
while True:
    try:
        word3 = word3 + S[change_K + count]
        count += 1
    except IndexError:
        break
word2 = word2.swapcase()
print(word1 + word2 + word3) change_K = int(input().split(" ")[-1]) change_K int(input().split(" ")[-1]) int input().split(" ")[-1] ().split(" ") ().split () input split " " -1 word_S = list(input()) word_S list(input()) list input() input S = list(word_S) S list(word_S) list word_S word1 = "" word1 "" for i in range(change_K - 1):
    word1 = word1 + S[i] i range(change_K - 1) range change_K - 1 change_K 1 word1 = word1 + S[i] word1 word1 + S[i] word1 S[i] S i word2 = S[change_K - 1] word2 S[change_K - 1] S change_K - 1 change_K 1 word3 = "" word3 "" count = 0 count 0 while True:
    try:
        word3 = word3 + S[change_K + count]
        count += 1
    except IndexError:
        break True try:
        word3 = word3 + S[change_K + count]
        count += 1
    except IndexError:
        break except IndexError:
        break break word3 = word3 + S[change_K + count] word3 word3 + S[change_K + count] word3 S[change_K + count] S change_K + count change_K count count += 1 count 1 word2 = word2.swapcase() word2 word2.swapcase() word2.swapcase word2 swapcase print(word1 + word2 + word3) print word1 + word2 + word3 word1 + word2 word1 word2 word3 word2 = S[change_K - 1] S[change_K - 1] word2 word3 = word3 + S[change_K + count] word3 + S[change_K + count] word3 change_K = int(input().split(" ")[-1]) int(input().split(" ")[-1]) change_K word1 = "" "" word1 S = list(word_S) list(word_S) S word_S = list(input()) list(input()) word_S word1 = word1 + S[i] word1 + S[i] word1 word3 = "" "" word3 count += 1 1 count count = 0 0 count word2 = word2.swapcase() word2.swapcase() word2
change_K = int(input().split(" ")[-1])
word_S = list(input())
S = list(word_S)
word1 = ""
for i in range(change_K - 1):
    word1 = word1 + S[i]
word2 = S[change_K - 1]
word3 = ""
count = 0
while True:
    try:
        word3 = word3 + S[change_K + count]
        count += 1
    except IndexError:
        break
word2 = word2.swapcase()
print(word1 + word2 + word3)
