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

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