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