import Control.Applicative
import Data.Int

main = do
  [n,a,b,c,d] <- map read . words <$> getLine :: IO [Int64]

  putStrLn $ if (or [a + c*i - d*(n-1-i) <= b && b <= a + d*i - c*(n-1-i) | i <- [0..n-1]]) then "YES" else "NO"
