#include <bits/stdc++.h>
using namespace std;
string s;
int len;
int main() {
  int tot1 = 0, tot2 = 0, pd = 0;
  cin >> s;
  len = s.length();
  int j = -1, k = 0;
  while (pd == 0) {
    j++;
    if (s[j] == '0')
      k++;
    else if (s[j] == '1')
      pd = 1;
  }
  for (int i = 0; i <= len - 1; i++) {
    if (s[i] == '0')
      tot1++;
    else
      tot2++;
  }
  tot1 -= k;
  if (tot1 >= 6 && tot2 >= 1)
    cout << "yes" << endl;
  else
    cout << "no" << endl;
  return 0;
}
