#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int fl = -1;
  for (int i = n - 1; i > 0; i--) {
    if (s[i] == '1' && s[i - 1] == '0') {
      fl = i;
    }
  }
  if (fl == -1) {
    for (int i = 0; i < (n - 1); i++) {
      cout << s[i];
    }
    cout << endl;
  } else {
    for (int j = 0; j < (fl - 1); j++) {
      cout << s[j];
    }
    for (int j = fl; j < n; j++) {
      cout << s[j];
    }
    cout << endl;
  }
  return 0;
}
