#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int c = 0, a = 0;
  for (int i = 0; i != s.size(); i++) {
    if (s[i] == '1' && !a) {
      a = 1;
    } else if (a && s[i] == '0') {
      c++;
    }
  }
  if (c >= 6)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
