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