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