#include <bits/stdc++.h>
using namespace std;
string number, ans;
int main() {
  ios::sync_with_stdio(false);
  cin >> number;
  int index = -1;
  for (int i = 0; i < number.size(); i++)
    if (number[i] == '0') {
      index = i;
      break;
    }
  if (index == -1) index = 0;
  ans = number.substr(0, index) + number.substr(index + 1);
  cout << ans << endl;
  return 0;
}
