#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string s2 = "";
  bool mark = false;
  bool mark2 = false;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '1') mark2 = true;
    if (mark2) s2 += s[i];
  }
  int o;
  for (int i = 0; i < s2.length(); i++)
    if (s2[i] == '0' && !mark) {
      mark = true;
      o = i;
    }
  if (!mark) {
    for (int i = 0; i < s2.length() - 1; i++) cout << s2[i];
    cout << endl;
  } else {
    for (int i = 0; i < s2.length(); i++)
      if (i != o) cout << s2[i];
    cout << endl;
  }
  return 0;
}
