object Main {

  import java.util.Scanner
  import java.lang.String

  def main(args: Array[String]): Unit = {
    val scanner = new Scanner(System.in)
    val str :String = scanner.nextLine()

    if((str == "5 7 5") || (str == "7 5 5") || (str == "5 5 7") )
      println("Yes")
    else
      println("NO")
  }
}
