#include <bits/stdc++.h>
using namespace std;
int n, m, k;
string s;
int main() {
  cin >> s;
  size_t it = s.find('0');
  if (it == string::npos) {
    s.erase(s.length() - 1);
  } else {
    s.erase(it, 1);
  }
  cout << s;
  return 0;
}
