Read problems statements in [Mandarin Chinese], [Russian], and [Bengali] as well.

Recently, Chef's College Examination has concluded. He was enrolled in $3$ courses and he scored $A, B, C$ in them, respectively. To pass the semester, he must score at least $A_{min}, B_{min}, C_{min}$ marks in the respective subjects along with a cumulative score of at least $T_{min}$, i.e, $A + B + C ≥ T_{min}$.

Given seven integers $A_{min}, B_{min}, C_{min}, T_{min}, A, B, C$, tell whether Chef passes the semester or not.

------ Input: ------

The first line will contain $T$, number of testcases. Then the testcases follow. 
Each testcase contains of a single line of input, seven integers $A_{min}, B_{min}, C_{min}, T_{min}, A, B, C$ each separated by aspace.

------ Output: ------
Output in a single line, the answer, which should be "YES" if Chef passes the semester and "NO" if not.

You may print each character of the string in uppercase or lowercase (for example, the strings "yEs", "yes", "Yes" and "YES" will all be treated as identical).

------ Constraints  ------
$1 ≤ T ≤ 100$
$1 ≤ A_{min}, B_{min}, C_{min}, A, B, C ≤ 100$
$A_{min} + B_{min} + C_{min} ≤ T_{min} ≤ 300$

----- Sample Input 1 ------ 
5

1 1 1 300 2 2 2

3 2 2 6 2 2 2

2 3 2 6 2 2 2

2 2 3 6 2 2 2

100 100 100 300 100 100 100
----- Sample Output 1 ------ 
NO

NO

NO

NO

YES
----- explanation 1 ------ 
TestCase 1: Chef is passing in all the subjects individually but his total score ($2 + 2 + 2 = 6$) is much below the required threshold of $300$ marks. So Chef doesn't pass the semester.

TestCase 2: Chef's score in the first subject is less than the threshold, so he doesn't pass the semester.

TestCase 3: Chef's score in the second subject is less than the threshold, so he doesn't pass the semester.

TestCase 4: Chef's score in the third subject is less than the threshold, so he doesn't pass the semester.

TestCase 5: Chef is passing in all the subjects individually and also his total score is equal to the required threshold of $300$ marks. So Chef passes the semester.

Difficulty: EASY

Solutions:
t = int(input())
for i in range(t):
	(am, bm, cm, tm, a, b, c) = map(int, input().split())
	if a < am or b < bm or c < cm or (a + b + c < tm):
		print('NO')
	else:
		print('YES')


t = int(input())
for i in range(t):
	(amin, bmin, cmin, tmin, a, b, c) = map(int, input().split())
	if a >= amin and b >= bmin and (c >= cmin):
		if a + b + c >= tmin:
			print('YES')
		else:
			print('NO')
	else:
		print('NO')


for i in range(int(input())):
	(Amin, Bmin, Cmin, Tmin, A, B, C) = map(int, input().split())
	if A >= Amin and B >= Bmin and (C >= Cmin) and (A + B + C >= Tmin):
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(a, b, c, T, A, B, C) = map(int, input().split())
	if A + B + C >= T and A >= a and (B >= b) and (C >= c):
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	(am, bm, cm, t, a, b, c) = map(int, input().split())
	if a >= am and b >= bm and (c >= cm) and (a + b + c >= t):
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	(a, b, c, r, x, y, z) = map(int, input().split())
	if x + y + z >= r and x >= a and (y >= b) and (z >= c):
		print('YES')
	else:
		print('NO')


i = int(input(''))
for t in range(0, i):
	(am, bm, cm, tm, a, b, c) = map(int, input('').split())
	total = a + b + c
	if total >= tm:
		if (a >= am and b >= bm) and c >= cm:
			print('YES')
		else:
			print('NO')
	else:
		print('NO')


tc = int(input())
for i in range(tc):
	(a, b, c, t, a1, b1, c1) = map(int, input().split())
	if a <= a1 and b <= b1 and (c <= c1):
		if a1 + b1 + c1 >= t:
			print('YES')
		else:
			print('NO')
	else:
		print('NO')


n = int(input())
for _ in range(n):
	(A_min, B_min, C_min, T_min, A, B, C) = list(map(int, input().split()))
	T = A + B + C
	if A >= A_min and B >= B_min and (C >= C_min) and (T >= T_min):
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(minA, minB, minC, Tmin, A, B, C) = list(map(int, input().split()))
	if minA <= A and minB <= B and (minC <= C) and (Tmin <= A + B + C):
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(Am, Bm, Cm, Tm, A, B, C) = map(int, input().split())
	if A >= Am and B >= Bm and (C >= Cm) and (A + B + C >= Tm):
		print('YES')
	else:
		print('NO')


def code():
	cases = int(input())
	for _ in range(cases):
		(amin, bmin, cmin, tmin, A, B, C) = map(int, input().split(' '))
		if A >= amin and B >= bmin and (C >= cmin) and (A + B + C >= tmin):
			print('YES')
		else:
			print('NO')
code()


for i in range(int(input())):
	(a, b, c, d, e, f, g) = map(int, input().split())
	if e >= a and f >= b and (g >= c) and (e + f + g >= d):
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(a, b, c, cum, min1, min2, min3) = map(int, input().split())
	d = min1 + min2 + min3
	if min1 >= a and min2 >= b and (min3 >= c) and (d >= cum):
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	(a, b, c, p, d, e, f) = [int(i) for i in input().split()]
	if d >= a and e >= b and (f >= c) and (d + e + f >= p):
		print('YES')
	else:
		print('NO')


t = int(input())
while t:
	(a, b, c, Tm, Am, Bm, Cm) = map(int, input().split())
	if a <= Am and b <= Bm and (c <= Cm) and (Am + Bm + Cm >= Tm):
		print('YES')
	else:
		print('NO')
	t = t - 1


t = int(input())
while t:
	(am, bm, cm, tm, a, b, c) = map(int, input().split())
	if a >= am and b >= bm and (c >= cm) and (a + b + c >= tm):
		print('YES')
	else:
		print('NO')
	t = t - 1


for _ in range(int(input())):
	(a, b, c, d, A, B, C) = map(int, input().split())
	if A >= a and B >= b and (C >= c) and (A + B + C >= d):
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	(a1, a2, a3, ans, a, b, c) = map(int, input().split())
	if a >= a1 and b >= a2 and (c >= a3) and (a + b + c >= ans):
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	(a, b, c, T, ta, tb, tc) = map(int, input().split(' '))
	if ta >= a and tb >= b and (tc >= c) and (ta + tb + tc >= T):
		print('YES')
	else:
		print('NO')


t = int(input())
for _ in range(t):
	x = list(map(int, input().split()))
	(amin, bmin, cmin, tmin, a, b, c) = x
	total = a + b + c
	if total >= tmin and a >= amin and (b >= bmin) and (c >= cmin):
		print('YES')
	else:
		print('NO')


n = int(input())
for i in range(n):
	(Amin, Bmin, Cmin, Tmin, a, b, c) = map(int, input().split())
	T = a + b + c
	if a >= Amin and b >= Bmin and (c >= Cmin) and (T >= Tmin):
		print('YES')
	else:
		print('NO')


n = int(input())
for _ in range(n):
	(x, y, z, t, x1, x2, x3) = map(int, input().split())
	if x1 >= x and x2 >= y and (x3 >= z) and (x1 + x2 + x3 >= t):
		print('YES')
	else:
		print('NO')


import sys
n = int(input())
for i in range(n):
	(amin, bmin, cmin, tmin, a, b, c) = map(int, sys.stdin.readline().split())
	summarks = a + b + c
	if a >= amin and b >= bmin and (c >= cmin) and (summarks >= tmin):
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	(xm, ym, zm, tm, x, y, z) = map(int, input().split())
	t = x + y + z
	if x >= xm and y >= ym and (z >= zm) and (t >= tm):
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(0, t):
	(a, b, c, d, x, y, z) = map(int, input().split(' '))
	if x >= a and y >= b and (z >= c) and (x + y + z >= d):
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	(Am, bm, cm, tm, a, b, c) = map(int, input().split())
	if ((Am <= a and bm <= b) and cm <= c) and a + b + c >= tm:
		print('YES')
	else:
		print('NO')