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