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