#include<iostream>
#include<cstring>
using namespace std;
int main()
{   int i,j;
	char s[20];
	cin>>s;
	for(i=0,j=strlen(s)-1;i<j;i++,j--)
	{char temp;
	atemp=s[i];
		s[i]=s[j];
		s[j]=temp;
	}
	cout<<s;
	return 0;
}