#include <bits/stdc++.h>
using namespace std;
int main() {
  string bin;
  cin >> bin;
  int i = 0;
  for (; i + 1 < bin.length(); i++)
    if (bin[i] == '0') break;
  cout << bin.substr(0, i) + bin.substr(i + 1) << endl;
  return 0;
}
