#include <bits/stdc++.h>
using namespace std;
int arr[3][3];
int main() {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int index = -1;
  string out;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0') {
      index = i;
      break;
    }
  }
  if (index == -1)
    s.erase(s.begin());
  else
    s.erase(s.begin() + index);
  cout << s;
  return 0;
}
