#include <bits/stdc++.h>
int main() {
  char a[100010];
  scanf("%s", a);
  long long i = 0, x = 1;
  while (a[i] != '\0') {
    if (a[i] == '0') {
      a[i] = '2';
      x = 0;
      break;
    }
    i++;
  }
  if (x) {
    a[0] = '2';
  }
  i = 0;
  while (a[i] != '\0') {
    if (a[i] != '2') printf("%c", a[i]);
    i++;
  }
  printf("\n");
  return (0);
}
