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

int main(){
	string str,ret ="";

	cin >> str;
	for(int i=str.size()-1;i>=0;i--){
		ret += str[i];
	}

	cout << ret << endl;

    return 0;
}
