#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  int i;
  int size = a.size();
  for (i = 0; i < size; i++) {
    if (a[i] == '1') break;
  }
  int cnt = 0;
  for (; i < size; i++) {
    if (a[i] == '0') cnt++;
  }
  if (cnt > 5) {
    cout << "yes\n";
    return 0;
  } else
    cout << "no\n";
  return 0;
}
