#include <bits/stdc++.h>
using namespace std;
int main() {
  string bin;
  cin >> bin;
  int len, flag = 2;
  len = bin.size();
  for (int i = int(0); i < int(len); i++) {
    if (bin[i] == '1') continue;
    if (bin[i] == '0') {
      bin.erase(i, 1);
      flag = 3;
      break;
    }
  }
  if (flag == 2) bin.erase(0, 1);
  cout << bin;
  return 0;
}
