#include <bits/stdc++.h>
using namespace std;
int x, i, n;
string s;
int main() {
  cin >> s;
  x = s.find('0');
  if (x == -1) {
    s.erase(s.begin() + 0);
  } else {
    s.erase(s.begin() + x);
  }
  cout << s;
}
