#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  long long n;
  cin >> s;
  n = s.size();
  for (long long i = 0; i <= n; i++) {
    if (s[i] == '0') {
      for (long long j = 0; j < i; j++) {
        cout << s[j];
      }
      for (long long j = i + 1; j < n; j++) {
        cout << s[j];
      }
      return 0;
    }
  }
  for (long long j = 0; j < n - 1; j++) {
    cout << s[j];
  }
}
