#include <map>
#include <string>
#include <iostream>
#include<vector>
#include <set>
#include<math.h>
#include<algorithm>

using namespace std;

int main()
{
	string str;
	
	cin >> str;
	for (int i=str.length()-1; i>=0; i--)
	{
		cout << str[i];
		if (i == 0) cout << endl;
	}
}