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