#include <cstdio>
#include <vector>
using namespace std;

int main(){
	char str[25];
	
	fill(str, str + 25, 0);
	
	scanf("%s", str);
	
	int p = 25;
	while(str[--p] == 0);
	while(p >= 0){
		printf("%c", str[p--]);
	}
	
	return 0;
}