#include <bits/stdc++.h>
using namespace std;
long long read() {
  long long x = 0;
  bool ok = 0;
  char c = getchar();
  while (c < 48 || c > 57) ok |= (c == '-'), c = getchar();
  while (c > 47 && c < 58) x *= 10, x += c - 48, c = getchar();
  if (ok) x = -x;
  return x;
}
void print(int x, int y = 0) {
  printf("%d", x);
  if (y == 0)
    puts("");
  else
    putchar(' ');
}
void printll(long long x, int y = 0) {
  printf("%I64d", x);
  if (y == 0)
    puts("");
  else
    putchar(' ');
}
string read_s() {
  string s = "";
  char c = getchar();
  while (!isalpha(c) && !isdigit(c)) c = getchar();
  while (isalpha(c) || isdigit(c)) s += c, c = getchar();
  return s;
}
void prints(string x) {
  char s[100002];
  for (int i = 0; i < x.size(); i++) s[i] = x[i];
  s[x.size()] = '\0';
  puts(s);
}
int main() {
  string s = read_s();
  if (s.size() < 3)
    puts("NO");
  else {
    int x = 0, cnt = 0;
    while (x < s.size() && s[x] == '0') x++;
    for (int i = x + 1; i < s.size(); i++)
      if (s[i] == '0') cnt++;
    if (cnt > 5)
      puts("yes");
    else
      puts("no");
  }
}
