Scanf.scanf "%s" @@ fun s ->
let k = String.length s in
let c =
  Array.init k (fun i -> if s.[i] = 'o' then 1 else 0)
  |> Array.fold_left (+) (15-k)
in
print_endline (if c >= 8 then "YES" else "NO")
