#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
const long long LL_INF = (long long)9.22e18;
string s;
int main() {
  cin >> s;
  bool isFirst = true;
  int cnt = 0;
  for (char ch : s) {
    if (ch == '1' && isFirst) {
      isFirst = false;
      continue;
    }
    if (ch == '0' && !isFirst) {
      cnt++;
    }
  }
  if (cnt >= 6 && !isFirst) {
    cout << "yes" << endl;
  } else {
    cout << "no" << endl;
  }
  return 0;
}
