import java.util.Scanner
import kotlin.system.exitProcess

fun main(args: Array<String>) {
	val scanner = Scanner(System.`in`)
	val arr = IntArray(3) {scanner.nextInt()}
	var s = false
	for (a in arr) {
		if (!s && a==7) s=true
		else if (a!=5) {
			println("NO")
			exitProcess(0)
		}
	}
	println( if(s) "YES" else "NO")
}