#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size(), a;
  for (a = 0; a < n; a++) {
    if (s[a] == 49) break;
  }
  if (a == n) {
    printf("no\n");
    return 0;
  }
  int ss = 0;
  while (a < n) {
    if (s[a] == 48) ss++;
    a++;
  }
  if (ss > 5) {
    printf("yes\n");
  } else
    printf("no\n");
  return 0;
}
