#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100 * 1000 + 17;
string s, x;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  cin >> s;
  reverse(s.begin(), s.end());
  while (s.size() and s.back() == '0') s.pop_back();
  reverse(s.begin(), s.end());
  while (s.size()) {
    if (s.back() == '0') x += '0';
    s.pop_back();
  }
  if (x.size() > 5)
    cout << "yes";
  else
    cout << "no";
  return 0;
}
