import java.util.Scanner
 
object ABC042A {
  def main(args:Array[String]):Unit = {
    val sc:Scanner = new Scanner(System.in)
    val tmp = Array(sc.nextInt(), sc.nextInt(), sc.nextInt())
 
    //if ((a == b && a < c) || (b == c && a > b) || (c == a && a < b)) {
    if (tmp.sorted samaElements Array(5, 5, 7)) {
      print("YES")
    } else {
      print("NO")
    }
  }
}