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