#include <iostream>
#include <string>

using namespace std;

int main() {
	string x;
	cin >> x;
	for (int i = x.size() - 1; i >= 0; --i) {
		cout << x[i];
	}
	cout << endl;
	//{char c; cin >> c;}
	return 0;
}