#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  while (cin >> str) {
    int ck = 0, cnt = 0, x, i;
    x = str.size();
    for (i = 0; i < x; i++) {
      if (str[i] == '1') ck = 1;
      if (ck == 1 && str[i] == '0') cnt++;
    }
    if (cnt > 5)
      printf("yes\n");
    else
      printf("no\n");
  }
  return 0;
}
