#include <iostream>
using namespace std;
int main() {
string s, oglindit;
cin >> s;
for (int i = s.size() - 1; i >= 0; --i) {
oglindit += s[i];
}
cout << oglindit;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglzdHJpbmcgcywgb2dsaW5kaXQ7CgljaW4gPj4gczsKCWZvciAoaW50IGkgPSBzLnNpemUoKSAtIDE7IGkgPj0gMDsgLS1pKSB7CgkJb2dsaW5kaXQgKz0gc1tpXTsKCX0KCWNvdXQgPDwgb2dsaW5kaXQ7CglyZXR1cm4gMDsKfQ==