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

int main() {

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

	return 0;
}