module Main where

import Control.Applicative
import Data.List

main :: IO ()
main = do
    [x, y, z] <- map read . sort . words <$> getLine
    putStrLn $ if x == 5 && y == 5 && z == 7 then "YES" else "NO"
