#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  int ok = false;
  for (int i = 0; i < a.size(); ++i)
    if (a[i] == '0') {
      a.erase(i, 1);
      ok = true;
      break;
    }
  if (!ok) a.erase(a.size() - 1, 1);
  if (a.size() > 0)
    cout << a << endl;
  else
    cout << 0 << endl;
  return 0;
}
