#include<iostream>
#include<string>
 
using namespace std;
 
int main()
{
    string str;
     
    cin >> str ;
     
    int i=str.size()-1;
     
    for(;i>=0;i--)
        cout << str[i] ;
     
    cout << endl;
     
}