import Data.Bool
import Data.List

main :: IO ()
main = do
  abc <- map read . words <$> getLine
  putStrLn . toAnswer $ couldBe575 abc

toAnswer :: Bool -> String
toAnswer = bool "NO" "YES"

couldBe575 :: [Int] -> Bool
couldBe575 = (==[5,5,7]) . sort