#include <bits/stdc++.h>
using namespace std;
const int MAXN = (int)1e6 + 3;
const int INF = (int)1e9 + 7;
string s;
int main() {
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0' || i + 1 == s.size()) {
      s.erase(s.begin() + i);
      cout << s;
      return 0;
    }
  }
  return 0;
}
