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