#include <cstdio>
#include <cstring>
#include <algorithm>
using std::__gcd;
using std::sort;
int main(){
	char s[100];
	scanf("%s",s);
	int l = strlen(s);
	for(int i=l-1;i>=0;--i)
		putchar(s[i]);
	putchar('\n');
	return 0;	
}