#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, c;
cin >> n;
if (n < 0) {
cout << "-";
n = abs(n);
}
bool x = true;
while (n != 0) {
c = n % 10;
if (c == 0 && x) {
n /= 10;
} else {
cout << c;
n /= 10;
x = false;
}
}
return 0;
}