#include <bits/stdc++.h>
char a[100050];
int main() {
  scanf("%s", a);
  int s = strlen(a);
  int q = 0;
  for (int i = 0; i < s - 1; i++) {
    if (q == 0 && a[i] == '0') {
      q = 1;
      continue;
    }
    printf("%c", a[i]);
  }
  if (q == 1) printf("%c", a[s - 1]);
  getchar();
  getchar();
}
