fun main(args: Array<String>) {
    val (A, B, C) = readInputLine().split(" ").map { it.toInt() }
    
    val cnt = IntArray(11)
    
    cnt[A]++
    cnt[B]++
    cnt[C]++

    println(if (cnt[5] == 2 && cnt[7] == 1) "YES" else "NO")
}

fun readInputLine(): String {
    return readLine()!!
}
