#include <cstdio>

using namespace std;

int main() {
  char s[19];
  scanf("%s", s);
  int cnt = 0;
  for (int i = 0; s[i]; ++i) {
    cnt += s[i] == 'x';
  }
  puts(15 - cnt >= 8 ? "YES" : "NO");
}
