#include<iostream>
#include<string>
using namespace std;

int main(){
	string str;
	cin >> str;
	
	string::reverse_iterator it = str.rbegin();
	while(it != str.rend()){
		cout << *it;
		it++;
	}
	cout << endl;
	return 0;
}