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