#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string b; getline(cin, b); reverse(b.begin(), b.end()); cout <<b; return 0; }