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