import std.stdio;
import std.conv, std.array, std.algorithm, std.string;
import std.math, std.random, std.range, std.datetime;
import std.bigint;
import std.container;
string read(){ static string[] ss; while(!ss.length) ss = readln.chomp.split; string res = ss[0]; ss.popFront; return res; }

void main(){
	long n = read.to!long;
	long a = read.to!long;
	long b = read.to!long;
	long c = read.to!long;
	long d = read.to!long;
	
	long h = abs(b - a);
	
	long m = -(n - 1) * d;
	long r = (h - m) % (c + d);
	long x = (n - 1) * (d - c);
	long q = (h - m - x + (c + d - 1)) / (c + d);
	
	string ans = (q <= n - 1 && r <= x)? "YES": "NO";
	
	debug "h m r x q".writeln;
	debug [h, m, r, x, q].writeln;
	ans.writeln;
	
	}