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