#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int n;ll A,B,l,r;
int main()
{
	cin>>n>>A>>B>>l>>r;
	B-=A;
	for (int i=1;i<n;i++){//
		ll R=1ll*i*r-1ll*(n-i-1)*l;
		ll L=1ll*i*l-1ll*(n-i-1)*r;
		if (L<=B&&B<=R) return puts("YES"),0;
	}
	puts("NO");
	return 0;
}