import java.util.Scanner

object Main {
  val sc = new Scanner(System.in)
  def main(args: Array[String]): Unit = {
    val wl = Seq(sc.nextInt, sc.nextInt, sc.nextInt).sorted

    val res = if(wl == Seq(5,5,7)) "YES" else "NO"

    println(res)
  }
}
