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