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