import Data.Bool main = getLine >>= putStrLn . bool "NO" "YES" . (\nm -> any even nm && all (/=1) nm) . init . map read . words