#include <bits/stdc++.h>
using namespace std;
int main() {
  ifstream in("input.txt");
  string s;
  bool e = false;
  int i, c = 0;
  getline(cin, s);
  for (i = 0; i < s.size(); i++) {
    if (s[i] == '1') e = true;
    if (e == true)
      if (s[i] == '0') c++;
  }
  if ((c >= 6) && (e == true))
    cout << "YES";
  else
    cout << "NO";
}
