#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  string n;
  cin >> n;
  bool zeroFound = false;
  for (size_t i = 0; i < n.size() - 1; ++i) {
    if (!zeroFound && n[i] == '0')
      zeroFound = true;
    else
      printf("%c", n[i]);
  }
  if (zeroFound) printf("%c", n[n.size() - 1]);
  printf("\n");
  return EXIT_SUCCESS;
}
