#include
int main()
{
char a[10],*p,*c;
gets(a);
c=p=a;
while(*p!='\0')
p++;
}
while (p!=c-1)
{
printf("%c",*(--p));
}
getch();
return 0;
}