#include <bits/stdc++.h>
using namespace std;
class A258 {
 public:
  void solve(istream& in, ostream& out) {
    string a;
    in >> a;
    int n = a.size();
    for (int i = 0; i < n; ++i) {
      if (a[i] == '0') {
        a.erase(i, 1);
        out << a << "\n";
        return;
      }
    }
    a.erase(0, 1);
    out << a << "\n";
  }
};
int main() {
  std::ios::sync_with_stdio(false);
  A258 solver;
  std::istream& in(std::cin);
  std::ostream& out(std::cout);
  solver.solve(in, out);
  return 0;
}
