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