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