#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int c = s.find('0');
  if (c != std::string::npos && c != 0) {
    for (int i = 0; i < c; i++) {
      cout << s[i];
    }
    for (int i = c + 1; i < s.length(); i++) {
      cout << s[i];
    }
    cout << endl;
  } else
    cout << s.substr(1) << endl;
  return 0;
}
