import java.util.*

fun main(args : Array<String>) {
    val scanner = Scanner(System.`in`)

    val inputs = mutableListOf<Int>()
    repeat(3) {
        inputs.add(scanner.nextInt())
    }
    inputs.sort()
    println( if (inputs == listOf(5,5,7)) "YES" else "NO")
}