#include <bits/stdc++.h>
using namespace std;
int main() {
  string input;
  cin >> input;
  size_t pos = input.find_first_of('0');
  if (pos != string::npos) {
    string res = input.substr(0, pos) + input.substr(pos + 1);
    cout << res << endl;
  } else {
    cout << input.substr(1) << endl;
  }
  return 0;
}
