import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val A = sc.nextInt()
  val B = sc.nextInt()
  val C = sc.nextInt()

  println(if (A * B * C == 175 && A + B + C == 17) "YES" else "NO")
}
