#include <bits/stdc++.h>
using namespace std;
const int maxn = 550;
int main() {
  string s;
  cin >> s;
  int ic = 0;
  int l = s.size();
  for (int i = l - 1; i >= 0; i--) {
    if (s[i] == '0') ic++;
    if (s[i] == '1' && ic >= 6) {
      cout << "yes" << endl;
      return 0;
    }
  }
  cout << "no" << endl;
  return 0;
}
