#include <iostream>
using namespace std;
int main(int argc, char** argv) {
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";
}
return 0;
}