object Main extends App {
  val in = scala.io.Source.stdin.getLines.toSeq
  val S = in.head
  val w = S.count(_ == 'o')
  val l = S.count(_ == 'x')
  val pos = (l <= 7)
  val ret = if(pos) "YES" else "NO"
  println(ret)
}
