#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[101] = "100010001";
  int cnt = 0, start, n;
  cin >> s;
  n = strlen(s);
  start = 0;
  while (start < n && s[start] != '1') ++start;
  for (int i = start + 1; i < n; ++i)
    if (s[i] == '0') ++cnt;
  if (cnt >= 6)
    cout << "yes";
  else
    cout << "no";
  return 0;
}
