//丹阳新区实小路彦
#include <bits/stdc++.h>
using namespace std;
int main()
{
string a;
cin >> a;
reverse(a.begin(), a.end());
int i = 0;
while (a.size() != i)
{
if (a[i] == '-')
{
cout << '-';
a[i] = ' ';
}
i++;
}
i = 0;
while (i + 1 < a.size() && a[i] == '0')
i++;
while (i < a.size())
cout << a[i++];
}