#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,r,c;
while(cin>>n)
{
c=0;
if(n==0){cout<<'0'<<"\n"; continue;}
if(n<0)cout<<'-',n=-n;
while(n>0)
{
r=n%10; n/=10;
if(c==0 && r==0) continue;
else{cout<<r;c++;}
}
cout<<"\n";
}
}