#include<iostream>
using namespace std;
int main () {
    string mozi;
    cin >> mozi;
    int y;
    y = mozi.length();
    for(int i=0;i<y;++i){
        string reverse;
        reverse[i]=mozi[y-i];
    }
    cout << reverse << endl;
    return 0;
}
