#include<iostream>
#include<string>

using namespace std;

int main(){
	string str;
	string ans;
	cin >> str;
	ans = str;
	for (int i = 0; i < str.size(); i++){
		ans[i] = str[str.size() - i - 1];
	}
	cout << ans << endl;

}