#include <bits/stdc++.h>
int main() {
  int i, j, l, flag;
  char arr[1000100], arr2[1000100];
  gets(arr);
  l = strlen(arr);
  for (flag = 0, j = 0, i = 0; i < l - 1; i++) {
    if (arr[i] == '0' && flag == 0) {
      flag = 1;
      continue;
    } else
      arr2[j++] = arr[i];
  }
  if (flag == 1) arr2[j++] = arr[l - 1];
  printf("%s\n", arr2);
  return 0;
}
