#include <bits/stdc++.h>
int main() {
  int c1 = 0, c0 = 0, i, k;
  char s[105];
  scanf("%s", &s);
  for (i = strlen(s) - 1; i >= 0; i--) {
    if (s[i] == '1') k = i + 1;
  }
  for (i = k - 1; i <= strlen(s); i++) {
    if (s[i] == '1')
      c1++;
    else if (s[i] == '0')
      c0++;
  }
  if (c0 >= 6 && c1 >= 1) {
    printf("yes\n");
  } else {
    printf("no\n");
  }
  return 0;
}
