#include<stdio.h>
#include<string.h>
int main()
{
int x;
scanf("%d",&x);
if(x>0)
{
printf("%d%d%d\n",x%10,x/10%10,x/100);
}
else
{
x=-x;
printf("%d%d%d\n",x%10,x/10%10,x/100);
}
}
#include<stdio.h>
#include<string.h>
int main()
{
int x;
scanf("%d",&x);
if(x>0)
{
printf("%d%d%d\n",x%10,x/10%10,x/100);
}
else
{
x=-x;
printf("%d%d%d\n",x%10,x/10%10,x/100);
}
}