#include <bits/stdc++.h>
using namespace std;
int main() {
  string binary;
  while (cin >> binary) {
    bool found = false;
    for (int i = 0; i < binary.size(); i++)
      if (binary[i] == '0') {
        found = true;
        binary.erase(binary.begin() + i);
        break;
      }
    if (!found) binary.erase(binary.begin());
    printf("%s\n", binary.c_str());
  }
  return 0;
}
