#include<stdio.h> int main() { int i=0; char c,a[10]; c=getchar(); if(c=='-') putchar(c); else a[i]=c; while( (i<10)&&(c=getchar())!='\n') { i++; a[i]=c; } while(a[i]==48) i--; while(i>=0) { putchar(a[i]); i--;} return 0; }