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