#include <bits/stdc++.h>
using namespace std;
int main() {
  long long l, i, f = 0, j = 0, m = 1e5 + 1;
  char s[m], ans[m];
  scanf("%s", s);
  l = strlen(s);
  for (i = 0; i < l; i++) {
    if (s[i] == '0' && f == 0) {
      f = 1;
      continue;
    }
    ans[j++] = s[i];
  }
  if (f == 0) {
    j--;
  }
  ans[j] = '\0';
  printf("%s\n", ans);
}
