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