import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    xs <- fmap read . words <$> getLine :: IO [Int]
    if sort xs == [5, 5, 7]
        then putStrLn "YES"
        else putStrLn "NO"