import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
{
Scanner in
= new Scanner
(System.
in); char[] s = str.toCharArray();
int i = in.nextInt();
int j = in.nextInt();
for(int b = i - 1, c = j - 1; b < c; b++, c--) {
char k = s[b];
s[b] = s[c];
s[c] = k;
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CiAKY2xhc3MgTWFpbgp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTY2FubmVyIGluID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlTdHJpbmcgc3RyID0gaW4ubmV4dExpbmUoKTsKCQljaGFyW10gcyA9IHN0ci50b0NoYXJBcnJheSgpOwoJCWludCBpID0gaW4ubmV4dEludCgpOwoJCWludCBqID0gaW4ubmV4dEludCgpOwoJCWZvcihpbnQgYiA9IGkgLSAxLCBjID0gaiAtIDE7IGIgPCBjOyBiKyssIGMtLSkgewoJCQljaGFyIGsgPSBzW2JdOwoJCQlzW2JdID0gc1tjXTsKCQkJc1tjXSA9IGs7CgkJfQoJU3lzdGVtLm91dC5wcmludGxuKHMpOwoJfQp9