#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int zeros = 0;
  bool one = false;
  for (int i = s.length() - 1; i >= 0; --i) {
    if (s[i] == '0') ++zeros;
    if (s[i] == '1' && zeros >= 6) {
      one = true;
      break;
    }
  }
  if (one)
    cout << "yes"
         << "\n";
  else
    cout << "no"
         << "\n";
}
