#include <bits/stdc++.h>
using namespace std;
string s;
int f, ans;
int main() {
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '1')
      f = 1;
    else if (f == 1)
      ans++;
  }
  if (ans >= 6)
    cout << "yes" << endl;
  else
    cout << "no" << endl;
  return 0;
}
