#include<bits/stdc++.h>
using namespace std;
stack<char> p;
string s;
int main()
{
cin >> s;
if (s[0] == '-')
{
cout << "-";
for (int i = 1 ; i <= s.length() ; i++)
p.push(s[i]);
}
else
{
for (int i = 0 ; i <= s.length() ; i++)
p.push(s[i]);
}
** while (p.top() == '0')
p.pop();**
while(!p.empty())
{
cout << p.top();
p.pop();
}
return 0;
}