import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;

void main() {
  auto s = readln.strip;
  auto cl = s.count!"a == 'x'";
  writeln (cl <= 7 ? "YES" : "NO");
}

