#include <bits/stdc++.h>
#define rep(i,a) for(i=a-1;i>=0;i--)
using namespace std;

int main(void){
    int i;
    string str;
    cin >> str;
    rep(i,str.length()) {
        cout << str[i];
    }
    cout << endl;
    return 0;
}