#import <stdio.h>
typedef long long Int;
int main() {
	Int n,a,b,c,d;
	scanf("%lld %lld %lld %lld %lld",&n,&a,&b,&c,&d);
	for(Int i=0;i<=n;i++){
	    Int x = -(n-1-i)*d + i*c;
		Int y = -(n-1-i)*c + i*d;
		if(x <= b-a && b-a <= y){
			puts("YES");
			return 0;
		}
	}
	puts("NO");
	return 0;
}