#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> s;
  int n = s.size(), l = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == '0' && l == 0 && i != n - 1) {
      l = 1;
      continue;
    } else {
      if (i != n - 1 || l == 1) cout << s[i];
    }
  }
}
