#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
c:;
  cin >> a;
  while (a[0] == '0') a.erase(0, 1);
  for (long long i = 0; i <= a.size(); i++) {
    if (a[i] == '1' && i != 0) {
      a.erase(i, 1);
      i--;
    }
  }
  if (a.size() >= 7)
    cout << "YES";
  else
    cout << "NO";
}
