It is the final day of La Liga. Chef has a certain criteria for assessing football matches.  
In particular, he only likes a match if:
The match ends in a draw, and, 
At least one goal has been scored by either team. 

Given the goals scored by both the teams as X and Y respectively, determine whether Chef will like the match or not.

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

- The first line of input will contain a single integer T, denoting the number of test cases. The description of T test cases follows.
- Each test case consists of a single line of input containing two space-separated integers X and Y — the goals scored by each team.

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

For each test case, output \texttt{YES} if Chef will like the match, 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 ≤ 100$
$0 ≤ X, Y ≤ 9$

----- Sample Input 1 ------ 
4
1 1
0 1
0 0
2 2

----- Sample Output 1 ------ 
YES
NO
NO
YES
----- explanation 1 ------ 
Test case $1$: It is a draw in which both teams have scored a goal, Chef will like this match.

Test case $2$: The game is not a draw. Hence, Chef will not like this match.

Test case $3$: Neither team scored a goal, so Chef will not like this match.

Test case $4$: It is a draw in which both teams scored $2$ goals each. Chef will like this match.

Source: codechef | Difficulty: EASY


Solutions:
for _ in range(int(input())):
	(x, y) = list(map(int, input().split()))
	if x == 0 and y == 0:
		print('NO')
	elif x == y:
		print('YES')
	else:
		print('NO')


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


T = int(input())
for i in range(T):
	(x, y) = map(int, input().split())
	if x > 0 and y > 0:
		if x == y:
			print('YES')
		else:
			print('NO')
	else:
		print('NO')


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


for i in range(int(input())):
	(a, b) = list(map(int, input().split()))
	if a == 0 and b == 0:
		print('NO')
	elif a == b:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(x, y) = [int(x) for x in input().split()]
	if x == y and x >= 1 and (y >= 1):
		print('YES')
	else:
		print('NO')


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


def is_match_liked(x, y):
	if x == y:
		if x > 0:
			return 'YES'
		else:
			return 'NO'
	elif x > 0 or y > 0:
		return 'NO'
	else:
		return 'YES'
t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	print(is_match_liked(x, y))


test_cases = int(input())
for i in range(test_cases):
	scores = list(map(int, input().split()))
	if scores[0] == scores[-1] and scores[0] >= 1 and (scores[-1] >= 1):
		print('YES')
	else:
		print('NO')


for t in range(int(input())):
	(x, y) = map(int, input().split())
	if x == 0 or y == 0 or x != y:
		print('NO')
	else:
		print('YES')


n = int(input())
for i in range(n):
	(x, y) = [int(x) for x in input().split()]
	if x + y > 0 and x == y:
		print('YES')
	else:
		print('NO')


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


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


i = int(input(''))
j = 0
while j < i:
	(x, y) = map(int, input().split())
	if min(x, y) != 0 and x == y:
		op = 'YES'
	else:
		op = 'NO'
	print(op)
	j += 1


t = int(input())
while t:
	(x, y) = map(int, input().split())
	print('YES' if x > 0 and y > 0 and (x == y) else 'NO')
	t -= 1


t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	if X == Y and X >= 1 and (Y >= 1):
		print('YES')
	else:
		print('NO')


a = int(input())
for i in range(a):
	(s, r) = map(int, input().split())
	if r == 0 and s == 0:
		print('NO')
	elif r == s:
		print('YES')
	else:
		print('NO')


n = int(input())
while n > 0:
	(a, b) = map(int, input().split())
	if a == 0 and b == 0:
		print('NO')
	elif a != b:
		print('NO')
	else:
		print('YES')
	n -= 1


n = int(input())
for i in range(n):
	(x, y) = map(int, input().split())
	if x == 0 or y == 0:
		print('NO')
	elif x == y:
		print('YES')
	else:
		print('NO')


N = int(input())
for i in range(N):
	(X, Y) = list(map(int, input().split()))
	if X > 0 and Y > 0:
		if X == Y:
			print('YES')
		else:
			print('NO')
	else:
		print('NO')