fun main(args: Array<String>){
    val ret = if(getSentences().sorted() == listOf(5, 5, 7)){
        "YES"
    }else{
        "NO"
    }

    println(ret)
}

fun getSentences(): List<Int>{
    return readLine()!!.split(" ").map { it.toInt() }
}