#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  int zeros = 0;
  bool z = 0;
  for (int i = a.size() - 1; i >= 0; i--) {
    if (a[i] == '0') {
      zeros++;
    }
    if (zeros == 6) {
      z = 1;
    }
    if (z == 1 && a[i] == '1') {
      cout << "yes" << endl;
      exit(0);
    }
  }
  cout << "no" << endl;
}
