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