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

int main()
{
	string before, after = "";

	cin >> before;
	for(int i=0;i<before.size();i++) 
		after += before[before.size()-(i+1)];

	cout << after << endl;

	return 0;
}