#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<algorithm>
#define ll long long
using namespace std;
int main()
{
    //int k,i,j,tep,x,a[170],m;
    char a[22];
    gets(a);
     cout<<strrev(a)<<endl;
return 0;
}