#include<iostream>
#include <fstream>
#include<string>
#include<cctype>
using namespace std;
string str;
string::iterator itr;
int main() {
	cin >> str;
	int p = str.size();
	itr = str.end();
	for (int i = 0; i < p; i++)
	{
		itr--;
		cout << *itr;
		
	}
	cout << endl;
			return 0;
}
