panda-and-xor-2_16979
Panda had recently learnt about Bit manipulation and logic gates,now he is very excited about it.One day he came across a very interesting question: Given two numbers,xor them and then in resulting number find the number of set bits.If number of set bits are even then print "YES" otherwise "NO".As he is unable to solve it,he is asking you for help.

Input:
First line of input contains T the number of test cases,then next T lines contains two space separated integers A and B.

Output: 
for each testcase print "YES" if number of set bits are even otherwise "NO" in new line.

Constraints:
1 ≤ T ≤ 500
1 ≤ A,B ≤ 10^9  

SAMPLE INPUT
2
6 5
10 11

SAMPLE OUTPUT
YES
NO
'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
T=long(raw_input(''))
while(T>0):
	[A,B]=map(long,raw_input().split(' '))
	C=A^B
	count=0
	while C>0:
		C-=C&(-1*C)
		count+=1
	if(count&1):
		print "NO"
	else:
		print "YES"
	T-=1