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