Chef is the financial incharge of Chefland and one of his duties is identifying if any company has gained a monopolistic advantage in the market.

There are exactly 3 companies in the market each of whose revenues are denoted by R_{1}, R_{2} and R_{3} respectively. A company is said to have a monopolistic advantage if its revenue is strictly greater than the sum of the revenues of its competitors.

Given the revenue of the 3 companies, help Chef determine if any of them has a monopolistic advantage.

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

- The first line of input will contain a single integer T, denoting the number of test cases.
- Each test case consists of a single line of input containing three space separated integers R_{1}, R_{2} and R_{3} denoting the revenue of the three companies respectively.

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

For each test case, output \texttt{YES} if any of the companies has a monopolistic advantage over its competitors, else output \texttt{NO}. 

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

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

$1 ≤ T ≤ 1000$
$1 ≤ R_{1}, R_{2}, R_{3} ≤ 10$

----- Sample Input 1 ------ 
4
1 1 1
1 2 4
2 10 3
1 2 3

----- Sample Output 1 ------ 
No
Yes
Yes
No

----- explanation 1 ------ 
Test case 1: All the companies have equal revenue so none have a monopolistic advantage.

Test case 2: The third company has a monopolistic advantage as $1 + 2 < 4$.

Test case 3: The second company has a monopolistic advantage as $2 + 3 < 10$.

Source: codechef | Difficulty: EASY
Tags: Mathematics


Solutions:
t = int(input())
for i in range(t):
	(x, y, z) = [int(x) for x in 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):
	(a, b, c) = map(int, input().split())
	if a + b < c or a + c < b or b + c < a:
		print('Yes')
	else:
		print('No')


for i in range(int(input())):
	(x, y, z) = map(int, input().split())
	l = [x, y, z]
	a = max(l)
	l.remove(a)
	if a > sum(l):
		print('Yes')
	else:
		print('No')


T = int(input())
for i in range(T):
	(X, Y, Z) = map(int, input().split())
	total_sum = X + Y + Z
	dif_sum = total_sum - max(X, Y, Z)
	if dif_sum < max(X, Y, Z):
		print('Yes')
	else:
		print('No')


n = int(input())
for i in range(n):
	a = list(map(int, input().split()))
	b = sorted(a)
	if max(b) > b[0] + b[1]:
		print('Yes')
	else:
		print('No')


for _ in range(int(input())):
	(a, b, c) = map(int, input().split())
	if a == b and b == c and (c == a):
		print('No')
	elif max(a, b, c) == a:
		if b + c < a:
			print('Yes')
		else:
			print('No')
	elif max(a, b, c) == b:
		if a + c < b:
			print('Yes')
		else:
			print('No')
	elif max(a, b, c) == c:
		if a + b < c:
			print('Yes')
		else:
			print('No')


for i in range(int(input())):
	(r1, r2, r3) = map(int, input().split())
	if max(r1, r2, r3) > r1 + r2:
		print('Yes')
	elif max(r1, r2, r3) > r2 + r3:
		print('Yes')
	elif max(r1, r2, r3) > r1 + r3:
		print('Yes')
	else:
		print('No')


for i in range(int(input())):
	(r1, r2, r3) = map(int, input().split())
	if r1 > r2 + r3 or r2 > r1 + r3 or r3 > r1 + r2:
		print('Yes')
	else:
		print('No')


T = int(input())
for i in range(T):
	(R1, R2, R3) = map(int, input().split())
	if R1 > R2 + R3 or R2 > R1 + R3 or R3 > R1 + R2:
		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):
	(r1, r2, r3) = list(map(int, input().split()))
	a = r1 + r2
	b = r2 + r3
	c = r3 + r1
	if r3 > a or r1 > b or r2 > c:
		print('Yes')
	else:
		print('No')


l = int(input())
for k in range(l):
	v = list(map(int, input().split()))
	if max(v) > sum(v) - max(v):
		print('Yes')
	else:
		print('No')


n = int(input())
for i in range(n):
	(x, y, z) = map(int, input().split())
	if x > y + z or y > x + z or z > x + y:
		print('Yes')
	else:
		print('No')


d = int(input())
for l in range(d):
	(r1, r2, r3) = map(int, input().split())
	if r1 > r2 + r3 or r2 > r3 + r1 or r3 > r1 + r2:
		print('Yes')
	else:
		print('No')