#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
int main()
{
string a;
cin>>a;
reverse(a.begin(),a.end());
if(a.back()=='-')
{
cout<<'-';
a.pop_back();
}
unsigned int i=0;
while(i+1<a.size()&&a[i]=='0') i++;
while(i<a.size()) cout<<a[i++];
return 0;
}