main = getLine >>= putStrLn.solve.map read.words
solve [n,a,b,c,d]
  | any eval [0..n - 1] = "YES"
  | otherwise = "NO"
  where
    eval m = lo <= b && b <= hi where
      lo = a - m*d + k*c
      hi = a - m*c + k*d
      k = n - m - 1
