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

using namespace std;

int main()
{
	string s, t;
	char c;
	
	while (getline(cin, s))
	{
		for (string::reverse_iterator it = s.rbegin(); it < s.rend(); it++)
		{
			t.push_back(*it);
		}
		
		printf("%s\n", t.c_str());
	}
	
	return 0;
}