Read problems statements [Hindi] , [Vietnamese] , [Mandarin Chinese] , [Russian] and [Bengali] as well.

Oh, these difficult contests... In each contest, there are so many hard tasks Chef cannot solve. However, he knows that he can only become a successful coder if he works hard. Fortunately, he has a problem in mind for training.

You are given two positive integers $a$ and $b$. You may apply the following magical operation any number of times (including zero):
choose an arbitrary positive integer $d$
perform exactly one of the following actions:
- add $d$ to $a$, add $d-1$ to $b$
- add $d-1$ to $a$, add $d$ to $b$

Chef is asking you to find out if it is possible to obtain $a = b$. Help him!

------  Input ------
The first line of the input contains a single integer $T$ denoting 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$. 

------  Output ------
For each test case, print a single line containing the string "YES" if it is possible to obtain $a = b$ or "NO" if it is impossible.

------  Constraints  ------
$1 ≤ T ≤ 1,000$
$1 ≤ a, b ≤ 10^{9}$

------  Subtasks ------
Subtaks #1 (100 points): original constraints

----- Sample Input 1 ------ 
1
5 7
----- Sample Output 1 ------ 
YES
----- explanation 1 ------ 
Example case 1: One possible strategy for Chef is:
- choose $d = 10$, add $d-1=9$ to $a$ and $d=10$ to $b$; after this operation, $a = 14$ and $b = 17$
- choose $d = 10$, add $d=10$ to $a$ and $d-1=9$ to $b$; afterwards, $a = 24$ and $b = 26$
- choose $d = 9$, add $d=9$ to $a$ and $d-1=8$ to $b$; afterwards, $a = 33$ and $b = 34$
- choose $d = 9$, add $d$ to $a$ and $d-1$ to $b$; finally, we have $a = b = 42$

Source: codechef | Difficulty: EASY
Tags: Mathematics


Solutions:
for _ in range(int(input())):
	(a, b) = map(int, input().split())
	print('YES')


n = int(input())
for i in range(n):
	(a, b) = map(int, input().split())
	print('YES')


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


T = int(input())
for i in range(T):
	(A, B) = list(map(int, input().split()))
	print('YES')


t = int(input())
for i in range(t):
	print('YES')


t = int(input())
while t > 0:
	print('YES')
	t = t - 1


t = int(input())
for tc in range(t):
	(a, b) = map(int, input().split())
	print('YES')


for i in range(int(input())):
	(x, y) = map(int, input().split())
	print('YES')


t = int(input())
while t > 0:
	t -= 1
	(a, b) = map(int, input().split())
	print('YES')


T = int(input())
x = range(T)
for i in x:
	(a, b) = map(int, input().split())
	print('YES')


t = int(input())
for i in range(t):
	(a, b) = list(map(int, input().split()))
	print('YES')


for _ in range(int(input())):
	print('YES')


for _ in range(int(input())):
	(A, B) = map(int, input().split())
	print('YES')


t = int(input())
while t:
	(a, b) = map(int, input().split())
	s = a + b
	print('YES')
	t -= 1


T = int(input())
for i in range(0, T):
	print('YES')