-- Question B time over

import Control.Applicative
import Control.Monad

main = do
  [n,a,b,c,d] <- (map read . words) <$> getLine 
  putStrLn $ check n a b c d 0

check :: Int -> Int -> Int -> Int -> Int -> Int -> String
check n a b c d k
 | (y-x =< abs(b-a)) && (abs(b-a) =< x-y) = "YES"
 | k == n+1 ="NO"
 | otherwise = check n a b c d (k+1)
 where x = (k*d-(n-k)*c)
       y = (k*c-(n-k)*d)
 