#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const int siz = 1e5 + 5;
int main() {
  int cnt = 0, pos = 0, flag = 0;
  string S;
  cin >> S;
  for (int i = S.size() - 1; i >= 0; i--) {
    if (S[i] == '0') cnt++;
    if (cnt == 6) {
      pos = i;
      break;
    }
  }
  for (int i = 0; i < pos; i++) {
    if (S[i] == '1') {
      flag = 1;
      break;
    }
  }
  if (flag)
    printf("yes\n");
  else
    printf("no\n");
  return 0;
}
