#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
int main() {
  char s[101];
  int i, l, c = 0, f = 0;
  scanf("%s", s);
  l = strlen(s);
  if (l < 7)
    puts("no");
  else {
    f = 0;
    for (i = (l - 1); i >= 0; i--) {
      if (c == 6 && s[i] == '0') continue;
      if (s[i] == '0' && c < 6)
        c++;
      else if (c == 6 && s[i] == '1')
        f++;
    }
    if (c >= 6 && f != 0)
      puts("yes");
    else
      puts("no");
  }
  return 0;
}
