#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=2e5+20;
ll n,A,B,C,D;
int main()
{
	while(cin>>n>>A>>B>>C>>D)
	{
		bool flag=false;
		for(ll i=0;i<=n;i++)//add i times 
		{
			ll j=n-1-i;
			ll mn=A+i*C-j*D;
			ll mx=A+i*D-j*C;
			if(B<=mx&&B>=mn)
				flag=true;
		}
		if(flag)
			puts("YES");
		else
			puts("NO");
	}
	return 0;
}