#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[101];
  cin >> s;
  int a = 0, b, c, d, e;
  bool k = false;
  b = strlen(s);
  for (a = 0; a < b; a++) {
    d = 0;
    if (s[a] == '1') {
      for (c = a; c < b; c++) {
        if (s[c] == '0') d++;
      }
      if (d >= 6) {
        cout << "yes";
        k = true;
        break;
      }
    }
  }
  if (k == false) {
    cout << "no";
  }
  return 0;
}
