#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, ans = "";
  cin >> s;
  bool f = false;
  auto it = find(s.begin(), s.end(), '0');
  if (it != s.end()) {
    ans.append(s.substr(0, it - s.begin()));
    ans.append(s.substr(it - s.begin() + 1, s.end() - it + 1));
    cout << ans << "\n";
  } else {
    ans.append(s.substr(0, s.length() - 1));
    cout << ans << "\n";
  }
  return 0;
}
