int n,c,m; while(cin>>n) { if(n==0) {cout<<'0'<<"\n";continue;} if(n<0) cout<<'-',n=-n; c=0; while(n>=1) { m=n%10; n/=10; if(c==0 && m==0) continue; else {c++; cout<<m;} } cout<<"\n"; }