#include <bits/stdc++.h>
int main(void) {
  char s[100001];
  int i, f = 0;
  scanf("%s", s);
  for (i = 0; s[i] != '\0'; ++i) {
    if (f == 1)
      printf("%c", s[i]);
    else if (s[i + 1] != '\0' && s[i] != '0')
      printf("%c", s[i]);
    if (s[i] == '0') f = 1;
  }
  return 0;
}
