#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  int first = str.find("1");
  int cnt = 0;
  for (int i = first; i < str.size(); ++i) {
    if (str[i] == '0') {
      cnt++;
    }
  }
  if (cnt >= 6) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
