#include <bits/stdc++.h>
using namespace std;
char s[105];
int main() {
  cin >> s;
  int len = strlen(s);
  int ans = 0, ok = 0;
  for (int i = 0; i < len; ++i) {
    if (s[i] == '1') ok = 1;
    if (ok && s[i] == '0') ans++;
  }
  if (ans >= 6)
    cout << "yes" << endl;
  else
    cout << "no" << endl;
  return 0;
}
