#include <iostream>
using namespace std;

int main() {
	char str[25];
	for (int i = 0;i < 25;i++) {
		str[i] = '%';
	}
	cin >> str;
	for (int i = 24; i >= 0; i--) {
		if (str[i] == '%') continue;
		cout << str[i];
	}
	cout << endl;
	return 0;
}