#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int x, c = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '1') {
      x = i;
      break;
    }
  }
  for (int i = x; i < s.size(); i++) {
    if (s[i] == '0') c++;
  }
  if (c >= 6)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
