#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline istream& operator>>(istream& is, vector<T>& v) {
  for (auto& e : v) {
    cin >> e;
  }
  return is;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  string s;
  cin >> s;
  if (count(find(begin(s), end(s), '1'), end(s), '0') > 5) {
    cout << "yes";
  } else {
    cout << "no";
  }
  return 0;
}
