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