#include
void myitoa(int n,char*str)
{int i,j;
char t;
for(i=0;n;i++)
{str[i]='0'+n%10;
n/=10;
}
str[i]='\0';
for(j=0,i--;j
{t=str[i];str[i]=str[j];str[j]=t;}
}
int main()
{ int n;
char s[20];
scanf("%d",&n);
myitoa(n,s);
printf("%s\n",s);
return 0;
}