#include <string>
#include <iostream>

using namespace std;

int main()
{
	string S;

	cin >> S;

	for (string::size_type i = S.size() - 1; i >= 0; i--)
	{
		cout << S[i];
	}

	cout << endl;

	return 0;
}