#include <bits/stdc++.h>
using namespace std;
string str;
int main() {
  cin >> str;
  long long n = str.size();
  long long i, j;
  long long cc = 6;
  for (i = n - 1; i >= 0; i--) {
    if (!cc) break;
    if (str[i] == '0') {
      cc--;
    }
  }
  if (cc != 0) {
    cout << "no" << endl;
  } else {
    for (; i >= 0; i--) {
      if (str[i] == '1') {
        cout << "yes" << endl;
        return 0;
      }
    }
    cout << "no" << endl;
  }
  return 0;
}
