import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
{
Scanner in
= new Scanner
(System.
in); for (int i=c.length()-1; i >= 0; i--) {
System.
out.
print(c.
charAt(i
)); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBNYWluCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVNjYW5uZXIgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCVN0cmluZyBjID0gaW4ubmV4dExpbmUoKTsKICAgICAgICBmb3IgKGludCBpPWMubGVuZ3RoKCktMTsgaSA+PSAwOyBpLS0pIHsKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludChjLmNoYXJBdChpKSk7CiAgICAgICAgfQoJfQp9