#include <iostream>
#include <string>
using namespace std;

int main()
{
    string s;
    string rs;
    cin >> s;
    string::reverse_iterator rit = s.rbegin();
    while( rit != s.rend() ){
        rs += *rit;
        ++rit;
    }
    cout << rs << endl;
    return 0;
}