#include <bits/stdc++.h>
using namespace std;
int main() {
  bool flag = false;
  string s;
  cin >> s;
  int cnt = 0, k = 0;
  for (int i = 0; i < s.size(); i++)
    if (s[i] == '1') {
      k = i, flag = true;
      break;
    }
  if (!flag) return cout << "no" << endl, 0;
  for (int i = k; i < s.size(); i++)
    if (s[i] == '0') cnt++;
  if (cnt < 6) return cout << "no" << endl, 0;
  cout << "yes" << endl;
  return 0;
}
