#include <cstdio>

int main(int argc, char const *argv[]){
//	freopen("in.txt", "r", stdin);

	char s[21];
	while(scanf("%s", s) != EOF){
		int i = 0;
		while(s[i] != '\0')i ++;
		i --;
		while(i >= 0){
			printf("%c", s[i]);
			i --;
		}
		printf("\n");
	}

	return 0;
}