'use strict'

const main = input => {
	const args = input.split('\n')[0].split(' ')

	if (args[0] === '5' && args[1] === '5' && args[2] === '7') console.log('YES')
	else if (args[0] === '7' && args[1] === '5' && args[2] === '5') console.log('YES')
	else if (args[0] === '5' && args[1] === '7' && args[2] === '5') console.log('YES')
	else console.log('NO')
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
