#include<iostream>
#include<string>
using namespace std;
int main() {
	string str;
	cin >> str;
	string ans;
	const int l = str.length();
	for (int i = l; i >= 0; i--) {
		ans[l - i-1] = str[i];
	}
	cout << ans << endl;
	
	return 0;
}