#include<iostream>
#include<cstring>
using namespace std;
int main()
{
string string1;
cin>>string1;
int stringlength=string1.size();
while(stringlength--)
{
cout<<string1[stringlength];
}
return 0;
}
#include<cstring>
using namespace std;
int main()
{
string string1;
cin>>string1;
int stringlength=string1.size();
while(stringlength--)
{
cout<<string1[stringlength];
}
return 0;
}