import java.util.Scanner

object Main {
  def main(args:Array[String]):Unit = {
    val sc:Scanner = new Scanner(System.in)
    
    val a = Array(sc.nextInt, sc.nextInt, sc.nextInt)
    
    if (a.sorted sameElements Array(5, 5, 7)) println("YES") else println("NO")
  }
}