#include<stdio.h>
#include<string.h>
int main()
{
void reverseOutput(char s);
char s[30],k[30];
gets(s);
reverseOutput(s);
puts(s);
return 0;
}
void reverseOutput(char s)
{
int x,y,j;
char k[30];
strcpy(k,s);
j=strlen(s);
for(x=0,y=j-1;y>0;x++,y--)
{
s[x]=k[y];
}
}