import java.util.Scanner

object AtCoder extends App {
  val sc = new Scanner(System.in)
  val a, b, c = sc.nextInt()
  val ans = if (List(a,b,c).sorted == List(5, 5, 7)) "YES" else "NO"
  println(ans)
}