#include <bits/stdc++.h>
using namespace std;
bool kg = true;
int main() {
  kg = true;
  char f[1000000];
  int len = 1;
  bool bl = true;
  while ((f[len] = getchar()) != '\n') {
    if (f[len] != '1') bl = false;
    len++;
  }
  if (bl) {
    for (int i = 2; i <= len - 1; i++) cout << '1';
    return 0;
  }
  for (int i = 1; i < len; i++) {
    if (kg && (f[i] == '0'))
      kg = false;
    else
      printf("%c", f[i]);
  }
  printf("\n");
}
