#include <stdio.h>
#include <string.h>

#define REP(i, n) for(i=0;i<n;i++)
#define MOD_NUM (1000000007)

int main(void)
{
	char str[21];
	int i;

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

	for (int i = strlen(str) - 1; i >= 0; i--){
		if (str[i] == '\r' || str[i] == '\n') continue;
		
		printf("%c", str[i]);
	}
	printf("\n");

	return 0;
}
