#include<cstdio>
#include<cstring>
//#include<iostream>
using namespace std;

int main(){
	char in[21], out[21] ;
	int n, i;

	scanf("%s", in);
	n= strlen(in);
	for(i=0; i<n; i++)	out[i]=in[n-i-1];
	out[n]='\0';
	printf("%s\n", out);

 return 0;
}