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