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

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