unittest
{
	assert( [ "5 1 5 2 4" ].parse.expand.solve == "YES" );
	assert( [ "4 7 6 4 5" ].parse.expand.solve == "NO" );
	assert( [ "48792 105960835 681218449 90629745 90632170" ].parse.expand.solve == "NO" );
	assert( [ "491995 412925347 825318103 59999126 59999339" ].parse.expand.solve == "YES" );
}



import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto nabcd = input.front.split.to!( long[] );
	return tuple( nabcd[ 0 ], nabcd[ 1 ], nabcd[ 2 ], nabcd[ 3 ], nabcd[ 4 ] );
}

auto solve( long n, long a, long b, long c, long d )
{
	n--;
	for( auto i = 0L; i <= n; i++ )
	{
		auto l = a - ( d * i ) + ( c * ( n - i ) );
		auto r = a - ( c * i ) + ( d * ( n - i ) );
		if( l <= b && b <= r ) return "YES";
	}
	return "NO";
}
