#include <bits/stdc++.h>
using namespace std;
char str[200];
int main() {
  while (~scanf("%s", str)) {
    int len = strlen(str);
    int flag = 0, cnt = 0;
    for (int i = 0; i < len; i++) {
      if (str[i] == '1') flag = 1;
      if (flag && str[i] == '0') cnt++;
    }
    if (cnt >= 6)
      printf("yes\n");
    else
      printf("no\n");
  }
  return 0;
}
