#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  int i = 0;
  while (i < n) {
    if (s[i] == '0') {
      break;
    }
    i++;
  }
  int ind = (i == n ? 0 : i);
  i = 0;
  while (i < n) {
    if (s[i] != '0') {
      break;
    }
    i++;
  }
  while (i < n) {
    if (ind != i) {
      cout << s[i];
    }
    i++;
  }
  if (n == 1 && s[0] == 0) {
    cout << 0 << endl;
  }
  cout << endl;
  return 0;
}
