#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, a, b, ts, cn = 0, n, f = 0, ln, c = 0;
  char s[1000];
  scanf("%s", s);
  ln = strlen(s);
  for (i = 0; i < ln; i++) {
    if (s[i] == '1') {
      f = 1;
    } else if (f) {
      c++;
    }
  }
  if (c >= 6)
    puts("yes");
  else
    puts("no");
  return 0;
}
