#include <bits/stdc++.h>
using namespace std;
int main() {
  string number;
  cin >> number;
  bool deleted = false;
  string out = "";
  for (char const &digit : number) {
    if (!deleted && digit == '0') {
      deleted = true;
    } else {
      out += digit;
    }
  }
  if (!deleted) {
    out = "";
    for (char const &digit : number) {
      if (!deleted) {
        deleted = true;
      } else {
        out += digit;
      }
    }
  }
  cout << out << endl;
  return 0;
}
