#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int ats = 0, sum = 0, onesSum = 0;
  string l = "1000000";
  if (s.length() >= l.length()) {
    for (int i = 0; i < s.length(); i++) {
      if (s[i] == '0') {
        ats++;
      }
      if (s[i] == '1') {
        onesSum++;
      }
      if (i != 0 && s[i] == '1' && onesSum > 1) {
        s.erase(s.begin() + i);
        onesSum--;
      }
    }
  }
  for (int i = 0; i < s.length(); i++) {
    if (s[0] != '1') {
      s.erase(s.begin());
      i = 0;
    }
  }
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '0') {
      sum++;
    }
  }
  if (sum < 6) {
    cout << "no";
    return 0;
  }
  cout << "yes";
  return 0;
}
