import Prelude
import Data.List
import Control.Monad

isin :: Int->Int->Int->Bool
isin x a b = (x<=a) && (b<=x)

isinithrange :: Int-> Int-> Int-> Int-> Int-> Bool
isinithrange x c d n i = isin x ((n-i)*d-(i-1)*c) ((n-i)*c-(i-1)*d)

solverpre :: Int->Int->Int->Int->Bool
solverpre amb n c d = or $ map (isinithrange amb c d n) [1 .. n]

solver a b n c d =solverpre (abs (a-b)) n c d

myshow :: Bool -> String
myshow True = "YES"
myshow False = "NO"

main = do
    [n, a, b, c, d] <- map read . words <$> getLine
    -- 出力
    putStr $ myshow $ solver a b n c d


