Chef has 3 numbers A, B and C. 

Chef wonders if it is possible to choose *exactly* two numbers out of the three numbers such that their sum is odd.

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

- The first line of input will contain a single integer T, denoting the number of test cases.
- Each test case consists of three integers A, B, C.

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

For each test case, output YES if you can choose exactly two numbers with odd sum, NO otherwise.

The output is case-insensitive. Thus, the strings YES, yes, yeS, and Yes are all considered the same.

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

$1 ≤ T ≤ 100$
$1 ≤ A, B, C ≤ 10$

----- Sample Input 1 ------ 
4
1 2 3
8 4 6
3 3 9
7 8 6

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

----- explanation 1 ------ 
Test case 1: Chef can choose $2$ and $3$ since $2 + 3 = 5$ and $5$ is odd.

Test case 2: It can be shown that Chef cannot choose two numbers among $8$, $4$ and $6$ with odd sum.

Difficulty: EASY
Tags: Mathematics

Starter code:

Solutions:
t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	if a % 2 == 1 and b % 2 == 1 and (c % 2 == 1):
		print('NO')
	elif a % 2 == 1 or b % 2 == 1 or c % 2 == 1:
		print('YES')
	else:
		print('NO')


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


t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	if (a + b) % 2 != 0 or (b + c) % 2 != 0 or (c + a) % 2 != 0:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(A, B, C) = map(int, input().split())
	sum_1 = A + B
	sum_2 = B + C
	sum_3 = A + C
	if sum_1 % 2 != 0 or sum_2 % 2 != 0 or sum_3 % 2 != 0:
		print('YES')
	else:
		print('NO')


a = int(input())
for i in range(a):
	(x, y, z) = map(int, input().split())
	if (x + y) % 2 != 0 or (y + z) % 2 != 0 or (z + x) % 2 != 0:
		print('YES')
	else:
		print('NO')


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


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


goals = int(input())
for distractions in range(goals):
	(wife, life, knife) = map(int, input().split())
	if (wife + life) % 2 == 1:
		print('YES')
	elif (wife + knife) % 2 == 1:
		print('YES')
	elif (life + knife) % 2 == 1:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	a = list(map(int, input().split()))
	c = 0
	for i in a:
		if i % 2 != 0:
			c = c + 1
	if c <= 2 and c != 0:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(a, b, c) = list(map(int, input().split()))
	e = a + b
	f = b + c
	g = a + c
	if e % 2 != 0 or f % 2 != 0 or g % 2 != 0:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	x = list(map(int, input().split()))
	c = 0
	for i in x:
		if i % 2 != 0:
			c += 1
	if c < 3 and c != 0:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(a, b, c) = map(int, input().split())
	(s, x) = divmod(a, 2)
	(t, y) = divmod(b, 2)
	(u, z) = divmod(c, 2)
	q = x + y + z
	if 0 < q < 3:
		print('YES')
	else:
		print('NO')


def odd_sum_possible(a, b, c):
	if (a + b) % 2 == 1 or (a + c) % 2 == 1 or (b + c) % 2 == 1:
		return 'YES'
	else:
		return 'NO'

def main():
	t = int(input())
	for i in range(t):
		(a, b, c) = map(int, input().split())
		print(odd_sum_possible(a, b, c))
main()


for i in range(0, int(input())):
	n = input().split()
	n[0] = int(n[0])
	n[1] = int(n[1])
	n[2] = int(n[2])
	if (n[0] % 2 == 0 or n[1] % 2 == 0 or n[2] % 2 == 0) and (n[0] % 2 != 0 or n[1] % 2 != 0 or n[2] % 2 != 0):
		print('YES')
	else:
		print('NO')


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


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


t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	g = a + b
	h = b + c
	f = a + c
	if g % 2 == 1:
		print('YES')
	elif h % 2 == 1:
		print('YES')
	elif f % 2 == 1:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	(a, b, c) = map(int, input().split())
	even = odd = 0
	if a % 2 == 0:
		even += 1
	else:
		odd += 1
	if b % 2 == 0:
		even += 1
	else:
		odd += 1
	if c % 2 == 0:
		even += 1
	else:
		odd += 1
	if even == 0 or odd == 0:
		print('NO')
	else:
		print('YES')


for _ in range(int(input())):
	(a, b, c) = map(int, input().split())
	(x, y, z) = (a % 2, b % 2, c % 2)
	if x == 0 and y == 0 and (z == 0):
		print('NO')
	elif x != 0 and y != 0 and (z != 0):
		print('NO')
	else:
		print('YES')


T = int(input())
for i in range(T):
	(A, B, C) = map(int, input().split())
	ab = A + B
	bc = B + C
	ca = C + A
	a = ab % 2
	b = bc % 2
	c = ca % 2
	if a != 0 or b != 0 or c != 0:
		print('YES')
	else:
		print('NO')


n = int(input())
for i in range(n):
	l = list(map(int, input().split()))
	(p, flag, flag1) = (1, False, False)
	for i in l:
		if i % 2 == 0:
			flag = True
		else:
			flag1 = True
		if flag and flag1:
			print('YES')
			p = 0
			break
	if p:
		print('NO')


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


for i in range(int(input())):
	(x, y, z) = map(int, input().split())
	s1 = (x + y) % 2
	s2 = (y + z) % 2
	s3 = (z + x) % 2
	if s1 != 0 or s2 != 0 or s3 != 0:
		print('YES')
	else:
		print('NO')


t = int(input())
while t > 0:
	nums = list(map(int, input().split()))
	total = sum(nums)
	flag = 0
	for num in nums:
		if (total - num) % 2 != 0:
			flag = 1
	print('YES' if flag == 1 else 'NO')
	t -= 1


t = int(input())
for x in range(t):
	x = list(map(int, input().split()))
	(n1, n2, n3) = (x[0] % 2, x[1] % 2, x[2] % 2)
	if n1 == 0 and n2 == 0 and (n3 == 0):
		print('NO')
	elif n1 != 0 and n2 != 0 and (n3 != 0):
		print('NO')
	else:
		print('YES')


def check_odd_sum(a, b, c):
	if (a + b) % 2 == 1 or (a + c) % 2 == 1 or (b + c) % 2 == 1:
		return 'YES'
	else:
		return 'NO'
t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	result = check_odd_sum(a, b, c)
	print(result)


t = int(input())
for _ in range(t):
	a = list(map(int, input().split()))
	even = 0
	odd = 0
	for i in a:
		if i % 2 == 0:
			even += 1
		else:
			odd += 1
	if even >= 1 and odd >= 1:
		print('YES')
	else:
		print('NO')


ts = int(input())
for i in range(ts):
	(a, bs, cs) = map(int, input().split())
	if (bs + cs) % 2 == 0 and (a + bs) % 2 == 0 and ((a + cs) % 2 == 0):
		print('NO')
	else:
		print('YES')


for _ in range(int(input())):
	(a, b, c) = map(int, input().split())
	even = 0
	odd = 0
	for i in (a, b, c):
		even += int(i & 1 == 0)
		odd += i & 1
	if even and odd:
		print('YES')
	else:
		print('NO')


g = int(input())
for distractions in range(g):
	(w, l, k) = map(int, input().split())
	if (w + l) % 2 == 1:
		print('YES')
	elif (w + k) % 2 == 1:
		print('YES')
	elif (l + k) % 2 == 1:
		print('YES')
	else:
		print('NO')