#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  bool is = false;
  cin >> s;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == '0') {
      s.erase(i, 1);
      is = true;
      break;
    }
  }
  if (is == false) {
    s.erase(0, 1);
  }
  if (s.empty()) {
    cout << 0;
  } else
    cout << s;
  return 0;
}
