#include<cstdio>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
    string aho;
    cin>>aho;
    std::reverse(aho.begin(),aho.end());
    cout<<aho<<endl;
    return 0;
}