#include<iostream>
#include<algorithm>
#include<string>

using namespace std;

int main()
{
	string str;
	cin >> str;

	for(int ix = str.size()-1;ix>=0;--ix)
		cout<<str[ix]<<flush;
	cout <<endl;

	return 0;
}