#include <iostream>
#include <string>

using namespace std;

int main() {
	string str;
	cin >> str;
	int N = (int)str.size();
	int n = N/2;
	for (int i=0; i<n; i++) {
		char swap = str[i];
		str[i] = str[N-i-1];
		str[N-i-1] = swap;
	}
	cout << str << endl;
	return 0;
}