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