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