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