#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long inf = 0x3f3f3f3f;
const long long llinf = 1e18;
const long long nax = 0;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  cout.tie();
  bool ok = 0;
  string s;
  cin >> s;
  int n = s.length();
  for (int i = 0; i < n; ++i) {
    if (s[i] == '0') {
      ok = 1;
      s.erase(i, 1);
      break;
    }
  }
  if (!ok) {
    s.erase(s.size() - 1, 1);
  }
  cout << s << '\n';
}
