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

int main(){
	string str, mod;

	cin >> str;
	int len = str.length();

	for ( int i = len-1; i >= 0; --i ){
		mod += str[ i ];
	}

	cout << mod << endl;

	return 0;
}