#include <iostream>
#include <string>

using namespace std;


int main()
{
    string str;
    
    cin >> str;
    for (auto i = str.end() - 1; i != str.begin() - 1; i--)
    {
        cout << *i;
    }
    
    cout << endl;
    
    return 0;
}
