#include <iostream>
#include <string>

using namespace std;

int main(void){
	string str;
	do{
		cin >> str;
	}while (str.length() > 20);
	for (int i = (str.length()-1); i>=0; --i){
		cout << str[i];
	}
	cout << endl;
	return 0;
}