fun main(args: Array<String>) {
    val (a, b, c) = readLine()!!.split(" ").map { it.toInt() }

    var cnt5 = 0
    var cnt7 = 0

    if (a == 5) {
        cnt5++
    } else if (a == 7) {
        cnt7++
    }

    if (b == 5) {
        cnt5++
    } else if (b == 7) {
        cnt7++
    }

    if (c == 5) {
        cnt5++
    } else if (c == 7) {
        cnt7++
    }

    if (cnt5 == 2 && cnt7 == 1) {
        println("YES")
    } else {
        println("NO")
    }
}