#include<bits/stdc++.h>
using namespace std;
// write your code here......
string fan(string s){
    string news = "";
    for (int i=s.length()-1;i>=0;i--){
        news=news+s[i];
    }
    return news;
}
int main(){
    string s;
    getline(cin,s);
    // write your code here......
    s = fan(s);
    cout<<s;
    return 0;
}