#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  bool state = true;
  for (long long i = 0; i < str.size(); i++) {
    if (str[i] == '0') {
      str.erase(str.begin() + i);
      state = false;
      break;
    }
  }
  if (state == false) {
    cout << str;
  } else {
    str.erase(str.begin() + 0);
    cout << str;
  }
  return 0;
}
