#include <bits/stdc++.h>
using namespace std;
const int oo = (1 << 30);
int main() {
  string s;
  cin >> s;
  reverse(s.begin(), s.end());
  int idx = 0;
  int cont = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0') cont++;
    if (cont == 6) {
      idx = i + 1;
      break;
    }
  }
  if (cont != 6) {
    cout << "no\n";
    return 0;
  }
  bool flag = 0;
  for (int i = idx; i < s.size(); i++)
    if (s[i] == '1') flag = 1;
  if (flag)
    cout << "yes\n";
  else
    cout << "no\n";
  return 0;
}
