#include <bits/stdc++.h>
using namespace std;
vector<char> vec;
int n;
bool del() {
  vector<char> tmp(vec.begin(), vec.end() - 6);
  int cnt = 0;
  for (auto p = vec.end() - 1; p != vec.end() - 7; --p) {
    if (*p == '0') ++cnt;
  }
  for (int i = 1; i <= cnt; ++i) {
    tmp.push_back('0');
  }
  vec = tmp;
  return (6 - cnt) > 0;
}
int main() {
  cin.sync_with_stdio(false);
  char c;
  while (cin >> c) vec.push_back(c);
  while (1) {
    if ((n = vec.size()) <= 6) {
      cout << "NO" << endl;
      break;
    } else {
      if (del())
        continue;
      else {
        for (int i = 0; i < n - 6; ++i) {
          if (vec[i] == '1') {
            cout << "yes" << endl;
            return 0;
          }
        }
        cout << "no" << endl;
        return 0;
      }
    }
  }
  return 0;
}
