#include <cstdio>
#include <stack>

using namespace std;

int main()
{
	char str[22];
	stack<char> stk;

	fgets( str, sizeof( str ) - 1, stdin );

	for ( int i = 0; str[i] != '\n'; i++ )
	{
		stk.push( str[i] );
	}

	while ( !stk.empty() )
	{
		putchar( stk.top() );
		stk.pop();
	}	

	return 0;
}