#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  long long int in = -1, x = 0;
  string ans = "no";
  for (long long int i = s.size() - 1; i >= 0; i--) {
    x += s[i] == '0';
    if (x == 6) {
      in = i;
      break;
    }
  }
  for (long long int i = 0; i < in; i++)
    if (s[i] == '1') {
      ans = "yes";
      break;
    }
  cout << ans;
  return 0;
}
