#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  while (cin >> s) {
    int i, l;
    l = s.length();
    int c = 0, p = 0;
    for (i = 0; i < l; i++) {
      if (s[i] == '1') p = 1;
      if (s[i] == '0' && p == 1) c++;
    }
    if (c >= 6)
      printf("yes\n");
    else
      printf("no\n");
  }
}
