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