#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    long long bol = 0;
    for (long long i = a - b; i <= a + b; i++) {
      if (i * n >= (c - d) and i * n <= (c + d)) {
        cout << "Yes" << endl;
        bol = 1;
        break;
      } else {
        if (i * n < c - d) {
          long long f = i * n, s = c - d;
          long long diff = s - f;
          if (diff <= n and i + 1 <= a + b and i != 0) {
            bol = 1;
            cout << "Yes" << endl;
            break;
          }
        } else {
          long long f = i * n, s = c - d;
          long long diff = f - s;
          if (diff <= n and i - 1 >= a - b) {
            bol = 1;
            cout << "Yes" << endl;
            break;
          }
        }
      }
    }
    if (bol == 0) cout << "No" << endl;
  }
}
