Reverse a substring#1611

Reverse a substring

1 second
128 megabytes
Very easy

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.

Input

The first line contains the string , with length not greater than .

The second line contains integers and (i \leq j).

Output

Print the string after all changes.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading