atcoder#ABC236A. [ABC236A] chukodai
[ABC236A] chukodai
Score : points
Problem Statement
You are given a string consisting of lowercase English letters.
Swap the -th and -th characters from the beginning of and print the resulting string.
Constraints
- is a string consisting of lowercase English letters.
- The length of , , satisfies .
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
chokudai
3 5
chukodai
After swapping the -rd character o
and -th character u
of chokudai
, we have chukodai
.
aa
1 2
aa
In this sample, after swapping the -st and -nd characters of , we have the same string as .
aaaabbbb
1 8
baaabbba