include <stdio.h>

void _printf(int x)
{
if(x>=0 && x<=9)
printf("%d",x);
else
{
printf("%d",x%10);
_printf(x/10);
}
}
int main()
{
int n;
scanf("%d",&n);
if(n<0)
{
n=-n;
putchar('-');
}
while(n%10==0)
n=n/10;
_printf(n);
return 0;
}