Chef has N candies. He has to distribute them to exactly M of his friends such that each friend gets equal number of candies and each friend gets even number of candies. Determine whether it is possible to do so.

NOTE: Chef will not take any candies himself and will distribute all the candies.

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

- First line will contain T, number of test cases. Then the test cases follow.
- Each test case contains of a single line of input, two integers N and M, the number of candies and the number of friends.

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

For each test case, the output will consist of a single line containing Yes if Chef can distribute the candies as per the conditions and No otherwise.

You may print each character of the string in uppercase or lowercase (for example, the strings yes, Yes, yEs, and YES will all be treated as identical).

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

$1 ≤ T ≤ 1000$
$1 ≤ N,M ≤ 1000$

----- Sample Input 1 ------ 
4
9 3
4 1
4 2
8 3
----- Sample Output 1 ------ 
No
Yes
Yes
No
----- explanation 1 ------ 
Test case $1$: Since Chef has $9$ candies and $3$ friends, each friend will get $\frac{9}{3} = 3$ candies. Since $3$ is not even, Chef doesn't satisfy the conditions.

Test case $2$: Since Chef has $4$ candies and $1$ friend, each friend will get $\frac{4}{1} = 4$ candies. Since $4$ is even, Chef satisfies all the conditions.

Test case $3$: Since Chef has $4$ candies and $2$ friends, each friend will get $\frac{4}{2} = 2$ candies. Since $2$ is even, Chef satisfies all the conditions.

Test case $4$: Since Chef has $8$ candies and $3$ friends. Since Chef won't be able to distribute all the candies equally, Chef does not satisfy all the conditions.

Difficulty: EASY

Solutions:
t = int(input())
for i in range(t):
	(a, b) = map(int, input().split())
	if a / b % 2 == 0:
		print('Yes')
	else:
		print('No')


t = int(input())
for i in range(t):
	(n, m) = map(int, input().split())
	if n % m == 0 and n // m % 2 == 0:
		print('Yes')
	else:
		print('No')


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	if x % y == 0:
		if x / y % 2 == 0:
			print('Yes')
		else:
			print('No')
	else:
		print('No')


for _ in range(int(input())):
	(N, M) = map(int, input().split())
	print('Yes' if N % M == 0 and N // M % 2 == 0 else 'No')


t = int(input())
for _ in range(t):
	(a, b) = map(int, input().split())
	ans = a // b
	if a % b == 0 and ans % 2 == 0:
		print('Yes')
	else:
		print('No')


t = int(input())
for i in range(t):
	(N, M) = map(int, input().split())
	if N % M == 0 and N // M % 2 == 0:
		print('Yes')
	elif N % M == 0 and N // M % 2 != 0 or N % M != 0:
		print('No')
	else:
		pass


for _ in range(int(input())):
	(n, m) = map(int, input().split())
	candies = n // m
	if candies % 2 == 0 and n % m == 0:
		print('Yes')
	else:
		print('No')


n = int(input())
for i in range(n):
	ar = list(map(int, input().split(' ')))
	if ar[0] % ar[1] == 0 and ar[0] // ar[1] % 2 == 0:
		print('Yes')
	else:
		print('No')


import math
for i in range(int(input())):
	(n, m) = map(int, input().split())
	if n / m % 2 == 0:
		print('Yes')
	else:
		print('No')


t = int(input())
while t > 0:
	(n, m) = map(int, input().split())
	c = n % m
	d = n // m
	if c == 0:
		if d % 2 == 0:
			print('Yes')
		else:
			print('No')
	else:
		print('No')
	t -= 1


def candies(n, m):
	if n % m or n // m % 2:
		return 'No'
	return 'Yes'
t = int(input())
for _ in range(t):
	(n, m) = map(int, input().split(' '))
	print(candies(n, m))