#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 1e5 + 9;
int vec[MAX_N];
int main() {
  int N, M;
  string s;
  while (cin >> s) {
    int num = 0;
    bool flag = false;
    for (int i = 0; i < s.length(); i++) {
      if (s[i] == '1') flag = true;
      if (s[i] == '0' && flag == true) num++;
    }
    if (num >= 6)
      cout << "yes" << endl;
    else
      cout << "no" << endl;
  }
  return 0;
}
