// https://www.luogu.com.cn/problem/P1307
#include <iostream>
#include <string>
using namespace std;
int main()
{
string n, res = "";
int i, count = 0, flag = 0;
cin >> n;
for (i = (n.size() - 1); i >= 0; i--)
{
if (n[i] != '-')
res += n[i];
else
flag = 1;
}
for (i = 0; i < res.size(); i++)
{
if (res[i] != '0')
break;
else
count++;
}
if (count)
res.erase(0, count);
if (flag)
cout << '-';
cout << res;
return 0;
}