#include <bits/stdc++.h>
using namespace std;
int main() {
  char str[100005];
  scanf("%s", str);
  bool deleted = false;
  int len = strlen(str);
  for (int i = 0; i < len - 1; i++) {
    if (deleted == true)
      printf("%c", str[i]);
    else {
      if (str[i] == '0')
        deleted = true;
      else
        printf("1");
    }
  }
  if (deleted) printf("%c", str[len - 1]);
  printf("\n");
  return 0;
}
