#include<iostream> #include<string> using namespace std; main() { string s; getline(cin,s); string str(s.rbegin(),s.rend()); cout<<str<<endl; }