#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '0') {
      s.erase(s.begin() + i);
      break;
    }
    if (i == s.length() - 1) {
      if (s[i] == '1') s.erase(s.begin() + i);
    }
  }
  cout << s << endl;
}
