#include<iostream>
using namespace std;
int main(){
	vector<char> s;
	char c[256];
	cin >> c;
	for (int i = 0; c[i] != NULL; i++)
	{
		s.push_back(c[i]);
	}
	if (s.size() <= 20){
		for (int i = 1; i < s.size(); i++)
		{
			int a = s.size();
			cout << s[a - i];
		}
	}
	return 0;
}