object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val s = Array.fill(3)(sc.nextInt())
  val five = s.count(_ == 5) == 2
  val seven = s.count(_ == 7) == 1
  if (five && seven) {
    println("YES")
  } else {
    println("NO")
  }
}
