#include <iostream>
#include <string>
using namespace std;
int main()
{
	string s;
	cin >> s;
	for (int i = 0; i < s.length() / 2; i++)
	{
		int j = s.length() - 1 - i;
		char c = s[i];
		s[i] = s[j];
		s[j] = c;
	}
	cout << s << endl;
	return 0;
}