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