import Data.Bool

main = do
 [n,a,b,c,d] <- map read . words <$> getLine :: IO [Integer]
 putStrLn $ bool "NO" "YES" $ moderate n a b c d

moderate n a b c d
 | odd n = r >= abs (a-b)
 | otherwise = r + min c d >= abs (a-b) && r + max c d <= abs (a-b)
 where
  r = div (abs (a-b)) 2 * diff 
  diff = d - c