#include<bits/stdc++.h>
using namespace std;

int main(){
    string s;
    cin>>s;
    int n;
    n=s.size();
    for(int i=n-1;i>=0;i--){
        cout << s[i];
    }
    cout<<endl;
    return(0);
}