#include <bits/stdc++.h>
int main() {
  int i;
  char s[100000] = {0};
  scanf("%s", s);
  int l = strlen(s);
  int res = 0;
  for (int j = 0; j < l; j++)
    if (s[j] == '0') {
      s[j] = '.';
      res = 1;
      break;
    }
  if (res == 0) s[0] = '.';
  for (int j = 0; j < l; j++) {
    if (s[j] >= '0' && s[j] <= '9') printf("%c", s[j]);
  }
  printf("\n");
}
