Problem: Boboniu gives you

  * r red balls, 
  * g green balls, 
  * b blue balls, 
  * w white balls. 



He allows you to do the following operation as many times as you want: 

  * Pick a red ball, a green ball, and a blue ball and then change their color to white. 



You should answer if it's possible to arrange all the balls into a palindrome after several (possibly zero) number of described operations. 

Input

The first line contains one integer T (1≤ T≤ 100) denoting the number of test cases.

For each of the next T cases, the first line contains four integers r, g, b and w (0≤ r,g,b,w≤ 10^9).

Output

For each test case, print "Yes" if it's possible to arrange all the balls into a palindrome after doing several (possibly zero) number of described operations. Otherwise, print "No".

Example

Input


4
0 1 1 1
8 1 9 3
0 0 0 0
1000000000 1000000000 1000000000 1000000000


Output


No
Yes
Yes
Yes

Note

In the first test case, you're not able to do any operation and you can never arrange three balls of distinct colors into a palindrome.

In the second test case, after doing one operation, changing (8,1,9,3) to (7,0,8,6), one of those possible palindromes may be "rrrwwwbbbbrbbbbwwwrrr".

A palindrome is a word, phrase, or sequence that reads the same backwards as forwards. For example, "rggbwbggr", "b", "gg" are palindromes while "rgbb", "gbbgr" are not. Notice that an empty word, phrase, or sequence is palindrome.

Solution (in PYTHON3):

Solution:
# def help():
# 	n,q = map(int,input().split(" "))

# 	height = list(map(int,input().split(" ")))
# 	reward = list(map(int,input().split(" ")))

# 	if( n<= 1000 and q<= 1000):
# 		for qw in range(q):
# 			a,b,c = map(int,input().split(" "))
# 			b -= 1
# 			if( a == 1 ):
# 				height[b] = c
# 			# else:
# 			# 	if( height[b] > height[c] ):
				
					
# 			# 		for i in range(b,c+1,-1):



# 			# 	else:
# 	else:
# 		visited = [0]*n
# 		for i in range(n):
# 			if(height)

			
# for _ in range(1):
# 	help()
# from sys import stdin
# input = stdin.readline

# n = int(input())
# arr = list(map(int,input().split(" ")))

# dp = [[0]*n for i in range(n)]

# for i in range(1,n):
# 	arr[i] = arr[i]+arr[i-1]

# for l in range(2,n+1):
# 	for i in range(n-l+1):
# 		j = i+l-1
# 		if(i == 0 ):
# 			cnt = arr[j]
# 		else:
# 			cnt = arr[j] - arr[i-1]
# 		for k in range(i+1,j+1):
# 			dp[i][j] = max(dp[i][j] ,dp[i][k-1]+dp[k][j]+cnt)

# print dp[0][n-1]


# from random import randint

# n = 300
# points = []
# x = set()
# y = set()
# while len(x)!=n:
# 	x.add(randint(1,500))
# while len(y)!=n:
# 	y.add(randint(1,500))
# x = sorted(list(x))
# y = sorted(list(y))
# freq = [randint(1,10) for i in range(n)]
# mindist = 100000000000000
# minpts = []
# for i in range(500):
# 	# print(i)
# 	for j in range(500):
# 		cd = 0
# 		for k in range(n):
# 			cd += (abs(i-x[k])+ abs(j-y[k]))*freq[k]
		
# 		if(cd < mindist):
# 			mindist = cd
# 			minpts = [(i,j)]
# 		elif(cd == mindist):
# 			minpts.append((i,j))
# print(mindist)
# # print(minpts)

# valid = []
# for i in minpts:
# 	if(i[0] in x and i[1] in y):
# 		valid.append(i)
# print(valid)

# xrep = []
# yrep = []

# for i in range(n):
# 	for j in range(freq[i]):
# 		xrep.append(x[i])
# 		yrep.append(y[i])

# n1 = len(xrep)

# cd = 0
# for k in range(n):
# 	cd += (abs(xrep[n1//2]-x[k])+ abs(yrep[n1//2]-y[k]))*freq[k]

# print(cd)
# print((xrep[n1//2],yrep[n1//2]))


from sys import stdin
input = stdin.readline

def help1():
	n,k = map(int,input().split(" "))
	arr = list(map(int,input().split(" ")))

	val = [[0]*(n+1) for i in range(101)]
	for i in range(n):
		for j in range(1,101):
			if(j == arr[i]):
				val[j][i+1] = val[j][i]+1
			else:
				val[j][i+1] = val[j][i]

	dp = [0]*(n+7)

	for i in range(n):
		for j in range(i+1):
			dp[i] = min(dp[i],dp[i-j] + val[i-j][i] + k)

	print(dp[n-1])

def help():
	arr = list(map(int,input().split(" ")))

	mini = min(arr[:3])

	flag = False
	for i in range(4):
		arr[i] = arr[i]%2

	if(arr[3] == 1):
		if(sum(arr[:3]) == 0):
			flag = True
	else:
		if(sum(arr[:3]) <= 1):
			flag = True


	if(mini != 0):
		for i in range(4):
			arr[i] = 1 - arr[i]

		if(arr[3] == 1):
			if(sum(arr[:3]) == 0):
				flag = True
		else:
			if(sum(arr[:3]) <= 1):
				flag = True

	if(flag):
		print("Yes")
	else:
		print("No")

 
for _ in range(int(input())):
	help()