#include <iostream>
#include <algorithm>
#include <iterator>
#include <string>
int main() {
std::string s;
std::getline(std::cin, s);
std::copy(s.rbegin(), s.rend(), std::ostream_iterator<char>(std::cout, ""));
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8aXRlcmF0b3I+CiNpbmNsdWRlIDxzdHJpbmc+CgppbnQgbWFpbigpIHsKCiAgc3RkOjpzdHJpbmcgczsKCiAgc3RkOjpnZXRsaW5lKHN0ZDo6Y2luLCBzKTsKCiAgc3RkOjpjb3B5KHMucmJlZ2luKCksIHMucmVuZCgpLCBzdGQ6Om9zdHJlYW1faXRlcmF0b3I8Y2hhcj4oc3RkOjpjb3V0LCAiIikpOwoJCiAgcmV0dXJuIDA7Cn0=