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