#include <bits/stdc++.h>
using namespace std;
string s;
int32_t main() {
  cin >> s;
  int fidx = 100000000;
  bool t = false;
  int n = s.size();
  for (int j = 0; j < n; j++) {
    if (s[j] == '0') {
      t = true;
      fidx = j;
      break;
    }
  }
  if (t == false) {
    for (int j = 0; j < n - 1; j++) cout << s[j];
  } else {
    for (int j = 0; j < n; j++) {
      if (j == fidx) continue;
      cout << s[j];
    }
  }
}
