/**
    Sweet!
**/
#include <bits/stdc++.h>

#define fr first
#define sc second
#define mk make_pair
#define pb push_back
#define pp pop_back()
#define ll long long
#define ld long double
#define OK puts("OK");
#define sz(s) (int)s.size()
#define all(s) s.begin(), s.end()
#define rand() rand() >> 16 * rand()

using namespace std;

const int N = 2e5+10;
const int inf = 2e9+7;
const ll linf = 1e18+9;

ll n, a, b, l, r, L, R;

int main() {
    cin >> n >> a >> b >> l >> r;
    if(a > b)
        swap(a, b);
    for(int i = 1; i <= n - 1; i++) {
        if(a >= b) {
            a -= l;
            L += (r - l);
        }
        else {
            a += l;
            R += (r - l);
        }
    }
    if(a > b) {
        if(a - b <= L) puts("YES");
        else puts("NO");
    }
    else {
        if(b - a <= R) puts("YES");
        else puts("NO");
    }
}

