#include <iostream>
using namespace std;
int main() {
char x[64];
int length=0;
while(cin>>x[length]) {
length++;
}
for(int i=length-1; i>=0; i--) {
cout<<x[i];
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgljaGFyIHhbNjRdOwoJaW50IGxlbmd0aD0wOwoJd2hpbGUoY2luPj54W2xlbmd0aF0pIHsKCQlsZW5ndGgrKzsKCX0KCWZvcihpbnQgaT1sZW5ndGgtMTsgaT49MDsgaS0tKSB7CgkJY291dDw8eFtpXTsKCX0KCXJldHVybiAwOwp9