#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int cnt = 0, flag = 0;
  for (auto x : s) {
    if (x == '1') flag = 1;
    if (flag) cnt += x == '0';
  }
  if (cnt >= 6)
    puts("yes");
  else
    puts("no");
}
