main=mapM_(putStrLn.solve.map read.words).lines=<<getContents
solve [n,a,b,c,d]=if any f[0..(n-1)`div`2] then"YES"else"NO"where
 f i=max 0 (cn-(d-c)*i)<=abs(a-b)&&abs(a-b)<=dn+(d-c)*i
  where [cn,dn]=map(*(n-1-i*2))[c,d]