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