#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  cin >> s;
  bool flag = false;
  n = s.length();
  for (int i = 0; i < (n); ++i) {
    if ((s[i] == '0' || i == n - 1) && !flag)
      flag = true;
    else
      printf("%c", s[i]);
  }
  printf("\n");
  return 0;
}
