atcoder#ABC233B. [ABC233B] A Reverse

[ABC233B] A Reverse

Score : 200200 points

Problem Statement

You are given integers LL, RR, and a string SS consisting of lowercase English letters. Print this string after reversing (the order of) the LL-th through RR-th characters.

Constraints

  • SS consists of lowercase English letters.
  • 1S1051 \le |S| \le 10^5 (S|S| is the length of SS.)
  • LL and RR are integers.
  • 1LRS1 \le L \le R \le |S|

Input

Input is given from Standard Input in the following format:

LL RR

SS

Output

Print the specified string.

3 7
abcdefgh
abgfedch

After reversing the 33-rd through 77-th characters of abcdefgh, we have abgfedch.

1 7
reviver
reviver

The operation may result in the same string as the original.

4 13
merrychristmas
meramtsirhcyrs