In the medieval age, there were 3 kingdoms A, B, and C. The army of these kingdom had N_{A}, N_{B}, and N_{C} soldiers respectively.  

You are given that an army with X soldiers can defeat an army with Y soldiers only if X > Y.

An army is said to be dominant if it can defeat both the other armies combined. For example, kingdom C's army will be dominant only if N_{C} > N_{A} + N_{B}.

Determine whether any of the armies is dominant or not.

------ Input Format ------ 

- The first line contains a single integer T - the number of test cases. Then the test cases follow.
- The first and only line of each test case contains three integers N_{A}, N_{B}, and N_{C} - the number of warriors in the armies of kingdoms A, B, and C respectively.

------ Output Format ------ 

For each test case, output YES if any of the armies is dominant. Otherwise, output NO.

You may print each character of YES and NO in uppercase or lowercase (for example, yes, yEs, Yes will be considered identical).

------ Constraints ------ 

$1 ≤ T ≤ 1000$
$1 ≤ N_{A}, N_{B}, N_{C} ≤ 100$

----- Sample Input 1 ------ 
4
15 5 6
12 13 16
1 1 100
10 10 20

----- Sample Output 1 ------ 
YES
NO
YES
NO

----- explanation 1 ------ 
Test case $1$: The kingdom $A$'s army is dominant since $15 > 5 + 6$.

Test case $2$: We can observe that none of the armies is dominant.

Test case $3$: The kingdom $C$'s army is dominant since $100 > 1 + 1$.

Test case $4$: We can observe that none of the armies is dominant. Note that the kingdom $C$'s army is not dominant since $20 ≤ 10 + 10$.

Source: codechef | Difficulty: EASY
Tags: Implementation


Solutions:
t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split(' '))
	if x > y + z or y > x + z or z > x + y:
		print('YES')
	else:
		print('NO')


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


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


for i in range(int(input())):
	(a, b, c) = map(int, input().split())
	l = [a, b, c]
	a = max(l)
	l.remove(a)
	if a > sum(l):
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(A, B, C) = map(int, input().split())
	sum = B + C + A
	army = sum - max(A, B, C)
	if max(A, B, C) > army:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	(a, b, c) = map(int, input().split())
	if max(a, b, c) == a:
		if a > b + c:
			print('YES')
		else:
			print('NO')
	elif max(a, b, c) == b:
		if b > a + c:
			print('YES')
		else:
			print('NO')
	elif max(a, b, c) == c:
		if c > a + b:
			print('YES')
		else:
			print('NO')


T = int(input())
for i in range(T):
	(Na, Nb, Nc) = map(int, input().split())
	if Na > Nb + Nc or Nb > Na + Nc or Nc > Na + Nb:
		print('YES')
	else:
		print('NO')


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


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


for _ in range(int(input())):
	(a, b, c) = map(int, input().split())
	s = 0
	if a > b + c:
		s = 1
	elif b > a + c:
		s = 1
	elif c > a + b:
		s = 1
	if s == 1:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	(a, b, c) = map(int, input().split())
	if a + b < c or b + c < a or c + a < b:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(0, t):
	(na, nb, nc) = map(int, input().split())
	if na > nb + nc or nb > na + nc or nc > na + nb:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	w = list(map(int, input().split()))
	w.sort()
	if w[2] > w[0] + w[1]:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	l = list(map(int, input().split()))
	l.sort()
	if l[-1] > l[-2] + l[-3]:
		print('YES')
	else:
		print('NO')


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


n = int(input())
for i in range(n):
	lst = list(map(int, input().split()))[:3]
	if lst[1] + lst[0] < lst[2] or lst[1] + lst[2] < lst[0] or lst[2] + lst[0] < lst[1]:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(X, Y, Z) = map(int, input().split())
	if X + Y < Z or Y + Z < X or X + Z < Y:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(A, B, C) = map(int, input().split())
	if A + B < C:
		print('YES')
	elif B + C < A:
		print('YES')
	elif A + C < B:
		print('YES')
	else:
		print('NO')


for T in range(int(input())):
	(A, B, C) = map(int, input().split())
	if A > B + C or B > A + C or C > A + B:
		print('YES')
	else:
		print('NO')


t = int(input())
while t > 0:
	nSoldiers = list(map(int, input().split()))
	totalSoldiers = sum(nSoldiers)
	flag = 0
	for soldiers in nSoldiers:
		if soldiers > totalSoldiers - soldiers:
			flag = 1
	print('YES' if flag == 1 else 'NO')
	t -= 1


T = int(input())
for i in range(T):
	(NA, NB, NC) = map(int, input().split())
	if NA + NB < NC or NB + NC < NA or NA + NC < NB:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	a = list(map(int, input().split()))
	a.sort()
	s = a[0] + a[1]
	if a[-1] > s:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(a, b, c) = list(map(int, input().split()))
	k = max(a, b, c)
	if k > a + b or k > b + c or k > a + c:
		print('YES')
	else:
		print('NO')