#include <bits/stdc++.h>
using namespace std;
int main() {
  string line;
  getline(cin, line);
  for (int i = 0; i < line.size(); i++) {
    if (line[i] == '0') {
      line.erase(line.begin() + i);
      cout << line << endl;
      return 0;
    }
  }
  line.erase(line.begin() + line.size() - 1);
  cout << line << endl;
  return 0;
}
