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