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