local n, a, b, c, d = io.read("*n", "*n", "*n", "*n", "*n")
local len, n1 = math.abs(a - b), n - 1
local isok = false
for i = 0, n1 do
  local l, r = i * c - (n1 - i) * d, i * d - (n1 - i) * c
  if l <= len and len <= r then isok = true break end
end
print(isok and "YES" or "NO")
