function main(input) {
    var value = input.trim();
    var result = value.split("");
    var winCount = result.filter((v) => v === "o").length;
    console.log(winCount >= 8 - (15 - result.length) ? 'YES' : 'NO');
}
 
main(require("fs").readFileSync("/dev/stdin", "utf8"));