#include<iostream>
#include<string>
using namespace std;

int main()
{
	string a;
	cin>>a;
	for(int i=0;i<a.length()/2;i++){
		char tmp=a[i];
		a[i]=a[a.length()-i-1];
		a[a.length()-i-1]=tmp;
	}
	cout<<a<<endl;
	return 0;
}