#include <bits/stdc++.h>
using namespace std;
char s[2010];
int n;
int main() {
  scanf("%s", s + 1);
  n = strlen(s + 1);
  int t = 1001;
  for (int i(1); i <= (n); ++i)
    if (s[i] == '1') {
      t = i;
      break;
    }
  int cnt = 0;
  for (int i(t + 1); i <= (n); ++i)
    if (s[i] == '0') ++cnt;
  puts(cnt >= 6 ? "yes" : "no");
  return 0;
}
