Given a string , select the substring that consists of characters from the -th to the -th character, inclusive (characters in the string are numbered starting from ). Reverse this substring: swap the -th character with the -th, the (i+1)-th with the (j-1)-th, and so on. Output the updated string after these changes.
The first line contains the string , with length not greater than .
The second line contains integers and (i \leq j).
Print the string after all changes.
Example 1
Example 2