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