#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int i;
  for (i = 0; i < s.size(); i++)
    if (s[i] == '1') break;
  if (i >= s.size()) {
    cout << "no";
    return 0;
  }
  int k = 0;
  for (; i < s.size(); i++)
    if (s[i] == '0') k++;
  if (k >= 6)
    cout << "yes";
  else
    cout << "no";
  return 0;
}
