#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;

#define MAX 256

int main(void){

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