Alice and Bob are very good friends and they always distribute all the eatables equally among themselves.

Alice has A chocolates and Bob has B chocolates. Determine whether Alice and Bob can distribute all the chocolates equally among themselves.

Note that:
It is not allowed to break a chocolate into more than one piece.
No chocolate shall be left in the distribution.

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

- The first line of input will contain an integer T — the number of test cases. The description of T test cases follows.
- The first and only line of each test case contains two space-separated integers A and B, the number of chocolates that Alice and Bob have, respectively. 

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

For each test case, output on a new line \texttt{YES} if Alice and Bob can distribute all the chocolates equally, else output \texttt{NO}. 
The output is case insensitive, i.e, \texttt{yes}, \texttt{YeS}, \texttt{yES} will all be accepted as correct answers when Alice and Bob can distribute the chocolates equally.

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

$1 ≤ T ≤ 1000$
$1 ≤ A, B ≤ 10^{5}$

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

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

----- explanation 1 ------ 
Test case $1$: Both Alice and Bob already have equal number of chocolates, hence it is possible to distribute the chocolates equally among Alice and Bob. 

Test case $2$: If Bob gives one of his chocolates to Alice, then both of them will have equal number of chocolates, i.e. $2$. So, it is possible to distribute the chocolates equally among Alice and Bob.

Test case $3$: There are total $3$ chocolates. These chocolates cannot be divided equally among Alice and Bob. 

Test case $4$: Alice and Bob cannot have equal number of chocolates, no matter how they distribute the chocolates.

Source: codechef | Difficulty: EASY
Tags: Mathematics


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


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


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


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


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


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


test = int(input())
ans = []
while test:
	test = test - 1
	(A, B) = [int(x) for x in input().split()]
	X = A + B
	if X % 2 == 0:
		ans.append('YES')
	else:
		ans.append('NO')
for i in ans:
	print(i)


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


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


test_cases = int(input())
for i in range(test_cases):
	chocolates = list(map(int, input().split()))
	if sum(chocolates) % 2 == 0:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(A, B) = map(int, input().split())
	x = A + B
	if x % 2 == 0:
		print('YES')
	else:
		print('NO')


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


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


n = int(input())
while n > 0:
	(k, m) = map(int, input().split())
	if (k + m) % 2 == 0:
		print('YES')
	else:
		print('NO')
	n -= 1


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


for _ in range(int(input())):
	(x, y) = map(int, input().split())
	if (y - x) % 2 == 1:
		print('NO')
	else:
		print('YES')


T = int(input())
for t in range(T):
	(A, B) = map(int, input().split())
	q = A + B
	w = q % 2
	if w == 0:
		print('YES')
	else:
		print('NO')


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


cases = int(input())
for case in range(cases):
	(x, y) = map(int, input().split())
	if (x + y) % 2 == 0:
		print('YES')
	else:
		print('NO')


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


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