Competitions

# Reverse a substring

In a given string s was chosen a substring of characters from the i-th to the j-th inclusive (characters in the string s are numbered starting from one). Then was swapped the i-th symbol with the j-th, (i + 1)-th with (j - 1)-th and so on (the substring was reversed). Print the string s after all changes are done.

#### Input

The first line contains the string s that is no longer than 1000 characters, the second line contains the numbers i and j (ij).

#### Output

Print the string s after all changes.

Time limit 1 second
Memory limit 128 MiB
Input example #1
zbbg
2 3
Output example #1
zbbg
Input example #2
gaqipkajibk
5 6
Output example #2
gaqikpajibk