#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, flg = 0, flg2 = 0, i, rtt;
  string n, f;
  cin >> n;
  f = n;
  for (i = 0; n[i] != '0' && n[i] != '\0'; i++)
    ;
  if (n[i] == '0' && flg == 0) {
    flg = 1;
    while (n[i] != '\0') {
      n[i] = n[i + 1];
      i++;
    }
    n[i - 1] = '\0';
  }
  for (int j = 0; f[j] != '\0'; j++) {
    if (f[j] == '0' && flg2 == 0) {
      flg2 = 1;
      continue;
    } else if (f[j + 1] == '\0' && flg2 == 0)
      continue;
    cout << f[j];
  }
  i = n.capacity();
  if (flg == 0) {
    n[i - 1] = '\0';
  }
  return 0;
}
