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