'use strict';(function(input){
  input=input.trim().split('').reduce((a,c)=>a+(c==='x'?1:0),0);
  var ans=((input<=7)?'YES':'NO');
  console.log(ans);
})(require('fs').readFileSync('/dev/stdin','utf8'));