#include <iostream>
#include <vector>
using namespace std;

int main(int argc, char const* argv[])
{
	char c;
	vector<char> vc;
	while (cin >> c) {
		vc.push_back(c);
	}
	for (int i = vc.size() - 1; i >= 0; --i) {
		cout << vc[i];
	}
	cout << endl;
	return 0;
}