#include<iostream>
#include<string>

using namespace std;

int main () {
	string line;
	getline (cin, line);
	for (string::reverse_iterator it = rbegin (line); it != rend (line); it++) {
		cout << *it;
	}
	cout << endl;

	return 0;
}