import std.stdio, std.conv, std.array, std.range, std.algorithm, std.string, std.typecons;


void main() {
    auto s = readln.strip;
    if (15 - s.length + s.count('o') >= 8) {
        writeln("YES");
    } else {
        writeln("NO");
    }

}
