#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  int i = 0;
  cin >> s;
  int z = 0, o = 0;
  while (s[i] == '0') {
    i++;
  }
  for (; i < s.length(); i++) {
    if (s[i] == '0') {
      z++;
    } else {
      if (!o) {
        o = s.length() - i;
      }
    }
  }
  if (z >= 6 && o >= 7) {
    cout << "Yes"
         << "\n";
  } else {
    cout << "No"
         << "\n";
  }
  return 0;
}
