This is a peculiar functioning setup.
Two Tanks are separated from each other by a wall .There is a pipe in the wall which connects  both tanks  which allows flow of water between them . Due to this ,there is change in temperature of both tanks , every minute temperature of Tank with larger temperature among two decreases by one and temperature of Tank  with smaller temperature among two increases by two until equilibrium is reached , But there is a problem .
The pipe can't control this flow of water if there is Non-equilibrium (inequality of temperature  on  both sides )  even after $m$ minutes and the pipe will burst after it , your task is to predict whether the pipe will burst or not .
Note: If equilibrium cannot be reached the process will continue forever.
The initial temperature of Cold Tank is $Tc$ , of Hot Tank it is $Th$. 

-----Input:-----
- First line will contain $T$, number of testcases. Then the testcases follow. 
- Each testcase contains of a single line of input, three  integers $m, Tc,Th$. 

-----Output:-----
For each testcase, output in a single line answer "Yes" if Pipe will burst after m minutes "No" if pipe will not burst.

-----Constraints-----
- $1 \leq T \leq 100000$
- $1 \leq m,Tc,Th \leq 10^9$
- $Tc \leq Th $

-----Sample Input:-----
2
4 5 10
2 2 5

-----Sample Output:-----
Yes
No

Source: codechef | Difficulty: UNKNOWN_DIFFICULTY


Solutions:
for i in range(int(input())):
	(m, tc, th) = map(int, input().split())
	x = th - tc
	if x % 3 != 0:
		print('Yes')
	elif x // 3 <= m:
		print('No')
	else:
		print('Yes')


T = int(input())
for _ in range(T):
	(m, Tc, Th) = list(map(int, input().split()))
	if (Th - Tc) % 3 != 0:
		print('Yes')
	elif (Th - Tc) // 3 <= m:
		print('No')
	else:
		print('Yes')


try:
	T = int(input())
	while T != 0:
		l = list(map(int, input().split()))
		m = l[0]
		tc = l[1]
		th = l[2]
		flag = False
		if (th - tc) % 3 != 0:
			print('Yes')
		elif (th - tc) // 3 <= m:
			print('No')
		else:
			print('Yes')
		T -= 1
except:
	pass


try:
	t = int(input())
	for _ in range(t):
		(m, a, b) = map(int, input().split())
		if (b - a) % 3 == 0 and (b - a) / 3 <= m:
			print('No')
		else:
			print('Yes')
except:
	pass


for _ in range(int(input())):
	(m, t1, t2) = map(int, input().split())
	d = max(t1, t2) - min(t1, t2)
	if d % 3 != 0:
		print('Yes')
	elif d // 3 > m:
		print('Yes')
	else:
		print('No')


t = int(input())
while t:
	(m, c, h) = input().split()
	m = int(m)
	c = int(c)
	h = int(h)
	x = abs(c - h)
	if x % 3 != 0:
		print('Yes')
	elif x // 3 > m:
		print('Yes')
	else:
		print('No')
	t -= 1


t = int(input())
for _ in range(t):
	(m, c, h) = map(int, input().split())
	if (h - c) % 3 == 0:
		if (h - c) // 3 <= m:
			print('No')
		else:
			print('Yes')
	else:
		print('Yes')


import atexit
import io
import sys
import math
from collections import defaultdict, Counter
t = int(input())
for i in range(t):
	(m, c, h) = map(int, input().split())
	if (h - c) % 3 == 0 and (h - c) // 3 <= m:
		print('No')
	else:
		print('Yes')


for i in range(int(input())):
	(m, tc, th) = [int(num) for num in input().split()]
	if th == tc:
		print('No')
	elif (th - tc) % 3 == 0 and (th - tc) // 3 <= m:
		print('No')
	else:
		print('Yes')


try:
	for _ in range(int(input())):
		(m, t1, t2) = map(int, input().split())
		t = t2 - t1
		if t % 3 == 0:
			if m >= t // 3:
				print('No')
			else:
				print('Yes')
		else:
			print('Yes')
except EOFError as e:
	pass


t = int(input())
for _ in range(t):
	(m, t1, t2) = map(int, input().split())
	x = abs(t1 - t2)
	if x % 3 == 0 and x // 3 <= m:
		print('No')
	else:
		print('Yes')


import math
t_c = int(input())
for _ in range(t_c):
	(m, tc, th) = [int(x) for x in input().split(' ')]
	temp = (th - tc) / 3
	if len(str(temp).split('.')[1]) <= 5:
		if math.ceil(temp) <= m:
			print('No')
		else:
			print('Yes')
	else:
		print('Yes')


for _ in range(int(input())):
	(m, a, b) = map(int, input().split())
	mins = abs(a - b) // 3
	step = abs(a - b) % 3
	if step == 0:
		if mins <= m:
			print('No')
		else:
			print('Yes')
	else:
		print('Yes')


t = int(input())
for i in range(t):
	inp = input()
	(m, tc, th) = inp.split()
	m = int(m)
	tc = int(tc)
	th = int(th)
	diff = th - tc
	if diff == 0:
		print('No')
	if diff > 0:
		if diff % 3 == 0 and diff / 3 <= m:
			print('No')
		else:
			print('Yes')


for _ in range(int(input())):
	(m, t1, t2) = map(int, input().split())
	f = 0
	(a, b) = (t1, t2)
	c = (t2 - t1) / 3
	if c == int(c) and c <= m:
		print('No')
	else:
		print('Yes')


for _ in range(int(input())):
	(m, c, h) = list(map(int, input().split()))
	if c + 2 * m < h - m:
		print('Yes')
	elif h == c:
		print('No')
	else:
		diff = h - c
		if (h - c) % 3 == 0:
			if (h - c) // 3 <= m:
				print('No')
			else:
				print('Yes')
		else:
			print('Yes')


for i in range(int(input())):
	(m, a, b) = list(map(int, input().split()))
	d = abs(a - b)
	if d % 3 == 0 and d / 3 <= m:
		print('No')
	else:
		print('Yes')


t = int(input())
while t > 0:
	(m, tc, th) = map(int, input().split())
	if (th - tc) % 3 == 0:
		if (th - tc) // 3 <= m:
			print('No')
		else:
			print('Yes')
	else:
		print('Yes')
	t -= 1


t = int(input())
flag = 0
for i in range(t):
	(m, tc, th) = map(int, input().split())
	new_m = (th - tc) / 3
	m2 = int(new_m)
	if new_m <= m and new_m == m2:
		print('No')
	else:
		print('Yes')