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