#include <bits/stdc++.h>
using namespace std;
int main() {
  string t;
  cin >> t;
  string s;
  bool a = true;
  for (int i = 0; i < t.size(); i++) {
    if (a && t[i] == '0') {
      a = false;
      continue;
    }
    s.push_back(t[i]);
  }
  if (a) s.erase(s.begin());
  cout << s << endl;
  return 0;
}
