#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t, n, l = 0, r = 0, ans = 0, sum = 0;
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '1') ans++;
    if (ans > 0 && s[i] == '0') sum++;
  }
  if (sum >= 6) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
  return 0;
}
