#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int count = 0;
  int i = 0;
  while (s[i] != '1' && i < s.length()) i++;
  if (i == s.length()) {
    cout << "no";
    return 0;
  }
  for (i; i < s.length(); i++)
    if (s[i] == '0') count++;
  if (count > 5)
    cout << "yes";
  else
    cout << "no";
  return 0;
}
