#include<iostream>
#include<string>
using namespace std;
int main()
{
	char a[21] = {};
	char b[21] = {};
	int alen = 0;
	cin >> a;
	alen = strlen(a);
	for (int i = 0; i < alen; i++) {
		b[i] = a[alen - i-1];
	}
	cout << b << endl;
	

	return 0;
	
}