object Main {
  def main(args: Array[String]): Unit = {
    val t = io.StdIn.readLine.split(" ").map(_.toInt)
    val r = t.sorted
    if (r(0) == 5 && r(1) == 5 && r(2) == 7)
      println("YES")
    else
      println("NO")
  }
}