#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char *argv[]) {
  string ss;
  cin >> ss;
  int flag = 0, i;
  int l = ss.length();
  for (i = 0; i < l - 1; i++) {
    if (ss[i] == '1') {
      cout << ss[i];
    } else if (flag == 1) {
      cout << ss[i];
    } else {
      flag = 1;
    }
  }
  if (flag == 1) {
    cout << ss[l - 1];
  }
  return 0;
}
