#include <bits/stdc++.h>
using namespace std;
long long ar[100005];
int main() {
  long long int i, j, n, k, m, x = 0, y, ans = 0;
  string s;
  cin >> s;
  for (i = 0; i < s.size(); i++) {
    if (s[i] == '1') {
      x = 1;
      for (j = i + 1; j < s.size(); j++) {
        if (s[j] == '0') ans++;
      }
    }
    if (x == 1) break;
  }
  if (ans >= 6)
    cout << "yes" << endl;
  else
    cout << "no" << endl;
  return 0;
}
