#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string a;
  cin >> a;
  int i = 0, c = 0;
  while (a[i] != '1' && i < (int)a.size()) i++;
  if (i == a.size()) {
    cout << "no";
    return 0;
  }
  for (; i < (int)a.size(); i++)
    if (a[i] == '0') c++;
  cout << (c >= 6 ? "yes" : "no");
  return 0;
}
