#include <bits/stdc++.h>

using namespace std;

int64_t n, a, b, c, d;

int main()
{
  cin >> n >> a >> b >> c >> d;

  for (int i = 0; i <= n-1; i++) {
    int64_t x1 = -i*d, y1 = -i*c, x2 = (n-1-i)*c, y2 = (n-1-i)*d;
    if (x1+x2 <= b - a && b - a <= y1+y2) {
      cout << "YES" << endl;
      return 0;
    }
  }

  cout << "NO" << endl;

  return 0;
}
