#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int z = 0, o = 0, pos = -1;
  for (long long i = 0; i < (s.length()); i++) {
    if (s[i] == '1') {
      pos = i;
      break;
    }
  }
  if (pos == -1) {
    cout << "no";
    return 0;
  }
  for (long long i = (pos + 1); i < (s.length()); i++) {
    if (s[i] == '0')
      z++;
    else
      o++;
  }
  cout << ((z >= 6) ? "yes" : "no");
}
