#include <bits/stdc++.h>
using namespace std;
unsigned long long ToBin(string s) {
  unsigned long long res = 0;
  for (int i = 0; i < s.size(); i++) {
    res += pow(2, s.size() - i - 1) * (s[i] - 48);
  }
  return res;
}
int main() {
  string S;
  cin >> S;
  string orig = S, smx = S;
  int i;
  unsigned long long mx = 0, bn;
  string tmp;
  bool ext = false;
  for (i = 0; i < S.size(); i++) {
    if (S[i] == '0') {
      tmp = S.erase(i, 1);
      ext = true;
      break;
    }
  }
  if (!ext) tmp = S.erase(0, 1);
  cout << tmp;
  return 0;
}
