#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, a, b, c, d;
  scanf("%d %d %d %d %d", &n, &a, &b, &c, &d);
  int l = a - b, h = a + b;
  for (int i = c - d; i <= c + d; i++) {
    int x = i / n;
    int y = i % n;
    if (l <= x && x + (y > 0 ? 1 : 0) <= h) {
      printf("Yes\n");
      return;
    }
  }
  printf("No\n");
}
int main() {
  int t;
  scanf("%d", &t);
  while (t--) solve();
}
