#include <bits/stdc++.h>
char s[100004];
int main() {
  int i, l, f = 0;
  scanf("%s", s);
  l = strlen(s);
  for ((i) = 0; (i) < l; (i)++) {
    if (f == 1)
      printf("%c", s[i]);
    else {
      if ((i == l - 1) || (s[i] == '0')) {
        f = 1;
        continue;
      } else
        printf("1");
    }
  }
  return 0;
}
