#include <cstdio>
#include <algorithm>
using namespace std;

long long N, A, B, C, D;

int main() {
    scanf("%lld%lld%lld%lld%lld", &N, &A, &B, &C, &D);
    for (int i = 0; i != N; ++i) {
        if (N * C - C - i * (C + D) <= B - A && B - A <= N * D - D - i * (C + D)) {
            puts("YES");
            return 0;
        }
    }
    puts("NO");
    return 0;
}