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