object Main extends App {

  import scala.io.StdIn.readLine
  val arr = readLine().trim.split(" ").map(_.toInt).toList.sorted
  if (arr(0) == 5 && arr(1) == 5 && arr(2) == 7) println("YES") else println("NO")

}
