#include <bits/stdc++.h>
const int inf = int(1e9);
const int mod = inf + 7;
const double PI = acos(-1.0);
using namespace std;
const int N = 1e5 + 155;
void solve() {
  string s;
  cin >> s;
  int cnt = 0;
  int ind = 0;
  for (int i = 0; i < (int)s.size(); ++i) {
    if (s[i] == '1') {
      cnt++;
      ind = i;
      break;
    }
  }
  if (!cnt) {
    cout << "no";
    return;
  } else {
    int a = 0;
    for (int i = (ind); i <= ((int)s.size() - 1); ++i) {
      if (s[i] == '0') a++;
    }
    if (a >= 6) {
      cout << "yes";
    } else {
      cout << "no";
    }
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) solve();
  return 0;
}
