#include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>
#include <functional>

using namespace std;

int gcd( int, int );

int main()
{
	char str[21];

	scanf("%s", str );
	
	vector<char> v( str, str + strlen( str ) );
	reverse( v.begin(), v.end() );

	for ( unsigned int i = 0; i < v.size(); i++ )
	{
		printf("%c", v[i] );
	}

	return 0;
}