object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val x = List.fill(3)(sc.nextInt()).sorted
  x match {
    case 5 :: 5 :: 7 :: Nil => println("YES")
    case _ => println("NO")
  }
}
