#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  string z;
  cin >> s;
  int n = s.size();
  bool skipped = false;
  for (int i = 0; i < n - 1; ++i) {
    if (skipped)
      z += s[i];
    else {
      if (s[i] == '0')
        skipped = true;
      else
        z += s[i];
    }
  }
  if (skipped) z += s[n - 1];
  cout << z << endl;
}
