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