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