Problem: Nastya just made a huge mistake and dropped a whole package of rice on the floor. Mom will come soon. If she sees this, then Nastya will be punished.

In total, Nastya dropped n grains. Nastya read that each grain weighs some integer number of grams from a - b to a + b, inclusive (numbers a and b are known), and the whole package of n grains weighs from c - d to c + d grams, inclusive (numbers c and d are known). The weight of the package is the sum of the weights of all n grains in it.

Help Nastya understand if this information can be correct. In other words, check whether each grain can have such a mass that the i-th grain weighs some integer number x_i (a - b ≤ x_i ≤ a + b), and in total they weigh from c - d to c + d, inclusive (c - d ≤ ∑_{i=1}^{n}{x_i} ≤ c + d).

Input

The input consists of multiple test cases. The first line contains a single integer t (1 ≤ t ≤ 1000) — the number of test cases. 

The next t lines contain descriptions of the test cases, each line contains 5 integers: n (1 ≤ n ≤ 1000) — the number of grains that Nastya counted and a, b, c, d (0 ≤ b < a ≤ 1000, 0 ≤ d < c ≤ 1000) — numbers that determine the possible weight of one grain of rice (from a - b to a + b) and the possible total weight of the package (from c - d to c + d).

Output

For each test case given in the input print "Yes", if the information about the weights is not inconsistent, and print "No" if n grains with masses from a - b to a + b cannot make a package with a total mass from c - d to c + d.

Example

Input


5
7 20 3 101 18
11 11 10 234 2
8 9 7 250 122
19 41 21 321 10
3 10 8 6 1


Output


Yes
No
Yes
No
Yes

Note

In the first test case of the example, we can assume that each grain weighs 17 grams, and a pack 119 grams, then really Nastya could collect the whole pack.

In the third test case of the example, we can assume that each grain weighs 16 grams, and a pack 128 grams, then really Nastya could collect the whole pack.

In the fifth test case of the example, we can be assumed that 3 grains of rice weigh 2, 2, and 3 grams, and a pack is 7 grams, then really Nastya could collect the whole pack.

In the second and fourth test cases of the example, we can prove that it is impossible to determine the correct weight of all grains of rice and the weight of the pack so that the weight of the pack is equal to the total weight of all collected grains.

Solution (in PYTHON3):

Solution:
# t=int(input())
# for i in range(t):
# 	a,b,c,n=map(int,input().split())
# 	ma=max(a,b)
# 	ma=max(ma,c)
# 	if ((n-(3*ma-(a+b+c)))%3==0 and (n-(3*ma-(a+b+c)))>=0):
# 		print("YES")
# 	else:
# 		print("NO")
#-------------------------
# t=int(input())
# for i in range(t):
# 	n=int(input())
# 	l=[]
# 	ans=""
# 	for j in range(n):
# 		a=list(map(int,input().split()))
# 		l.append(a)
# 	cre=[]
# 	l=sorted(l, key=lambda x: x[0])
# 	temp=[]
# 	temp.append(l[0])
# 	for k in range(1,len(l)):
# 		if (l[k][0]==l[k-1][0]):
# 			temp.append(l[k])
# 		else:
# 			temp=sorted(temp, key=lambda y: y[1])
# 			cre.extend(temp)
# 			temp=[]
# 			temp.append(l[k])
# 	temp=sorted(temp, key=lambda z: z[1])
# 	cre.extend(temp)
# 	l=cre
# 	ans=ans+l[0][0]*"R"
# 	ans=ans+l[0][1]*"U"
# 	flag=True
# 	for j in range(1,len(l)):
# 		if (l[j][1]<l[j-1][1]):
# 			flag=False
# 			break
# 		else:
# 			ans=ans+(l[j][0]-l[j-1][0])*"R"
# 			ans=ans+(l[j][1]-l[j-1][1])*"U"
# 	if (flag==False):
# 		print("NO")
# 	else:
# 		print("YES")
# 		print(ans)
#------------------------------
# t=int(input())
# for i in range(t):
# 	n,s,k=map(int,input().split())
# 	s-=1
# 	l=[0]*n
# 	ll=list(map(int,input().split()))
# 	for num in ll:
# 		l[num-1]=1
# 	ans=1100
# 	for j in range (s,n):
# 		if (l[j]==0):
# 			ans=min(ans, j-s)
# 			break
# 	for j in range(s,-1,-1):
# 		if (l[j]==0):
# 			ans=min(ans, s-j)
# 			break	
# 	print(ans)
	# j=s
	# while (j-s<=1001 and j<n):
	# 	if (l[j]==0):
	# 		ans=min(ans,j-s)
	# 		break
	# 	j+=1
	# j=s
	# while (s-j<=1001 and j>=0):
	# 	if (l[j]==0):
	# 		ans=min(ans,s-j)
	# 		break
	# 	j-=1
	# print(ans)

# t=int(input())
# while(t>0):
# 	t-=1
# 	n,k=list(map(int, input().split()))
# 	l=list(map(int, input().split()))
# 	low=[]
# 	high=[]
# 	r=int(n/2)
# 	for i in range(0,r):
# 		low.append(min(l[i],l[n-1-i])+1)
# 		high.append(max(l[i], l[n-1-i])+k)
# 	ll=-1
# 	for i in low:
# 		ll=max(ll,i)
# 	h=99999999
# 	for i in high:
# 		h=min(h,i)
# 	d={}
# 	for i in range(ll,h+1):
# 		d[i]=0
# 	m=0
# 	for i in range(0,r):
# 		if ((l[i]+l[n-1-i]) in d):
# 			d[l[i]+l[n-1-i]]+=1
# 			m=max(m,d[l[i]+l[n-1-i]])
# 	print(r-m)

t=int(input())
while(t>0):
	t-=1
	n,a,b,c,d=list(map(int, input().split()))
	mi1=n*(a-b)
	ma1=n*(a+b)
	mi2=c-d
	ma2=c+d
	if (ma1>ma2):
		if (ma2>=mi1):
			print("YES")
			continue
		else:
			print("NO")
			continue
	else:
		if (ma1>=mi2):
			print("YES")
			continue
		else:
			print("NO")