#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  if (a == 0)
    return b;
  else
    return gcd(b % a, a);
}
long long int power(long long int a, long long int b, long long int m) {
  long long int ans = 1;
  while (b) {
    if (b & 1) ans = (ans * a) % m;
    b /= 2;
    a = (a * a) % m;
  }
  return ans;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  long long int ind = s.length();
  long long int c = 0;
  for (long long int i = 0; i < s.length(); i++) {
    if (s[i] == '1') {
      ind = i;
      break;
    }
  }
  for (long long int i = ind + 1; i < s.length(); i++) {
    if (s[i] == '0') c++;
  }
  if (c >= 6)
    cout << "yes" << endl;
  else
    cout << "no" << endl;
}
