#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  int c = 0;
  bool f = 0;
  for (int i = 0; i < a.size(); i++) {
    if (a[i] == '1') f = 1;
    if (a[i] == '0' && f) c++;
    if (c == 6) break;
  }
  if (c == 6)
    cout << "yes";
  else
    cout << "no";
}
