#include <bits/stdc++.h>
int main() {
  char s[101];
  scanf("%s", &s);
  int l = strlen(s) - 1, i, count = 0;
  for (i = l; i >= 0; i--) {
    if (s[i] == '0') count++;
    if (count == 6) break;
  }
  for (; i >= 0; i--) {
    if (s[i] == '1' && count == 6) {
      printf("yes");
      return 0;
    }
  }
  printf("no");
  return 0;
}
