#include <bits/stdc++.h>
int main() {
  std::string str;
  std::cin >> str;
  long long int flag1 = -1, flag0 = -1;
  for (long long int i = 0; str[i] != '\0'; i++) {
    if (str[i] == '1' && flag1 == -1) {
      flag1 = i;
    }
    if (str[i] == '0' && flag1 != -1) {
      flag0 = i;
      break;
    }
  }
  if (flag1 != -1) {
    if (flag0 == -1) flag0 = 0;
    for (long long int i = flag1; str[i] != '\0'; i++) {
      if (i == flag0) continue;
      std::cout << str[i];
    }
  } else
    std::cout << 0;
}
