#include <bits/stdc++.h>
const long long N = 200200;
const long long Q = 100100;
const long long mod = 998244353;
const long long block = 500;
using namespace std;
string s;
int cnt;
bool t;
void solve() {
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '1') {
      t = 1;
    } else if (t) {
      cnt++;
    }
  }
  if (cnt >= 6) {
    cout << "yes"
         << "\n";
  } else {
    cout << "no"
         << "\n";
  }
}
bool mtest = false;
int main() {
  ios_base::sync_with_stdio(0);
  int TE = 1;
  if (mtest) cin >> TE;
  while (TE--) solve();
  return 0;
}
