#include <bits/stdc++.h>
using namespace std;
string s;
int cnt;
bool flag;
int main() {
  cin >> s;
  if (s.size() >= 7) {
    for (int i = s.size() - 1; i >= 0; i--) {
      if (s[i] == '0')
        cnt++;
      else if (s[i] == '1' && cnt >= 6)
        flag = true;
    }
  }
  if (flag)
    cout << "yes";
  else
    cout << "no";
  return 0;
}
