#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  string s;
  cin >> s;
  string ans = "";
  bool found = false;
  int at = -1;
  for (int i = 0; i < s.size() - 1; ++i) {
    if (s[i] == '0' && s[i + 1] == '1' && !found) {
      ans += s[i + 1];
      at = i + 1;
      found = true;
      i++;
    } else
      ans += s[i];
  }
  if (!found)
    ans = s.substr(0, s.size() - 1);
  else if (at != s.size() - 1)
    ans += s[s.size() - 1];
  cout << ans << "\n";
  return 0;
}
