#include<iostream>
#include<string>
using namespace std;
int main() {
	string a, b;
	getline(cin, a);
	int len = size(a);
	for (int i = 0; i < len; i++) {
		int c = len - 1 - i;
		b[c] = a[i];
	}
	cout << b << endl;
	return 0;
}