#include<stdio.h>
#include<string.h>
#define MAX 200
void reversed(char *s)
{
int length=strlen(s);
int i=0,j=length-1;
while(i<j)
{
char temp;
temp=s[i];
s[i]=s[j];
s[j]=temp;
i++;
j--;
}
}
int main(void)
{
char s[MAX];
gets(s);
reversed(s);
printf("%s",s);
return 0;
}