#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
string rev;
for(int i=s.length()-1;i>=0;i--)
{
rev=rev+s[i];
}
cout<<rev;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IG1haW4oKQp7CiAgc3RyaW5nIHM7CiAgY2luPj5zOwogIHN0cmluZyByZXY7CiAgZm9yKGludCBpPXMubGVuZ3RoKCktMTtpPj0wO2ktLSkKICB7CiAgCXJldj1yZXYrc1tpXTsKICB9CiAgY291dDw8cmV2Owp9