object Main extends App {
    var get = readLine.split("")
  	var sum = get.filter(_=="o").size
  var ans = ""
  if(15-get.size + 1 +sum>7) {
    ans = "YES"
  } else {
    ans = "NO"
  }
  println(ans)
}