#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, a, b, c, d, n, m, x, y;
  string s;
  cin >> s;
  int pos = s.find("0");
  if (pos != -1) {
    s = s.substr(0, pos) + s.substr(pos + 1);
  } else
    s = s.substr(1);
  cout << s;
}
