#include <bits/stdc++.h>
int main() {
  using std::cin;
  using std::cout;
  std::string number;
  cin >> number;
  if (number.find("0") != std::string::npos)
    number.erase((unsigned)number.find("0"), 1);
  else
    number.erase(1, 1);
  cout << number;
  return 0;
}
