import java.lang.Math.abs
import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val IN = listOf(sc.nextInt(), sc.nextInt(),sc.nextInt())
    println(if((IN.count{it == 5} == 2) && (IN.count{it == 7} == 1) ){
        "YES"
    }else{
        "NO"
    })
}