#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[105];
  int i, j, k, x, y, ok, len, cnt;
  while (scanf("%s", a) != EOF) {
    len = strlen(a);
    cnt = 0;
    ok = 0;
    if (len > 6) {
      for (i = 0; i < len; i++) {
        x = a[i] - '0';
        if (x == 1) break;
      }
      for (j = i + 1; j < len; j++) {
        y = a[j] - '0';
        if (y == 0) cnt++;
        if (cnt == 6) {
          ok = 1;
          break;
        }
      }
    }
    if (ok)
      printf("yes\n");
    else
      printf("no\n");
  }
  return 0;
}
