#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[100100];
  int removed = 0;
  scanf("%s", s);
  int len = strlen(s);
  for (int i = 0; i < len - 1; i++) {
    if (!removed && s[i] == '0') {
      removed = 1;
      continue;
    }
    printf("%c", s[i]);
  }
  if (removed) printf("%c", s[len - 1]);
  printf("\n");
  return 0;
}
