#include <bits/stdc++.h>
using namespace std;
int tcase, n, a, b, c, d;
int main() {
  int tcase;
  scanf("%d", &tcase);
  while (tcase--) {
    scanf("%d %d %d %d %d", &n, &a, &b, &c, &d);
    int mn = a - b, mx = a + b;
    int mnc = c - d, mxc = c + d;
    int cost = mn * n;
    if (cost >= c - d && cost <= c + d)
      puts("Yes");
    else if (cost > c + d)
      puts("No");
    else {
      int extra = c - d - cost;
      mn += (extra / n);
      cost = (mn + 1) * (extra % n) + mn * (n - (extra % n));
      if (mn + (extra % n != 0) <= mx && cost >= mnc && cost <= mxc)
        puts("Yes");
      else
        puts("No");
    }
  }
  return 0;
}
