In Chefland, a tennis game involves 4 referees.  
Each referee has to point out whether he considers the ball to be inside limits or outside limits. The ball is considered to be IN if and only if all the referees agree that it was inside limits.

Given the decision of the 4 referees, help Chef determine whether the ball is considered inside limits or not.

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

- The first line of input will contain a single integer T, denoting the number of test cases.
- Each test case consists of a single line of input containing 4 integers R_{1}, R_{2}, R_{3}, R_{4} denoting the decision of the respective referees. 

Here R can be either 0 or 1 where 0 would denote that the referee considered the ball to be inside limits whereas 1 denotes that they consider it to be outside limits.

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

For each test case, output IN if the ball is considered to be inside limits by all referees and OUT otherwise.

The checker is case-insensitive so answers like in, In, and IN would be considered the same.

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

$1 ≤ T ≤ 20$
$0 ≤ R_{1}, R_{2}, R_{3}, R_{4} ≤ 1$

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

----- Sample Output 1 ------ 
OUT
IN
OUT
OUT

----- explanation 1 ------ 
Test case $1$: Referees $1$ and $2$ do not consider the ball to be IN. Thus, the ball is OUT.

Test case $2$: All referees consider the ball to be IN. Thus, the ball is IN.

Test case $3$: Referee $4$ does not consider the ball to be IN. Thus, the ball is OUT.

Test case $4$: No referee considers the ball to be IN. Thus, the ball is OUT.

Difficulty: EASY

Solutions:
a = int(input())
for i in range(a):
	(p, q, r, s) = map(int, input().split())
	if (p or q or r or s) == 1:
		print('OUT')
	else:
		print('IN')


t = int(input())
for i in range(t):
	(r1, r2, r3, r4) = map(int, input().split())
	if r1 == r2 == r3 == r4 == 0:
		print('IN')
	else:
		print('OUT')


n = int(input())
for i in range(n):
	(a, b, c, d) = map(int, input().split())
	if a == 1 or b == 1 or c == 1 or (d == 1):
		print('OUT')
	else:
		print('IN')


t = int(input())
for i in range(t):
	(R1, R2, R3, R4) = map(int, input().split())
	if R1 == R2 == R3 == R4 == 0:
		print('IN')
	elif R1 == R2 == R3 == R4 == 1:
		print('OUT')
	else:
		print('OUT')


n = int(input())
for i in range(n):
	(a, b, c, d) = list(map(int, input().split()))
	if a == 0 and b == 0 and (c == 0) and (d == 0):
		print('IN')
	else:
		print('OUT')


x = int(input())
for i in range(x):
	(a, b, c, d) = map(int, input().split())
	if a == b == c == d == 0:
		print('IN')
	else:
		print('OUT')


t = int(input())
for u in range(t):
	(R1, R2, R3, R4) = list(map(int, input().split()))
	if R1 == 0 and R2 == 0 and (R3 == 0) and (R4 == 0):
		print('IN')
	else:
		print('OUT')


a = int(input())
for i in range(a):
	b = input()
	s = 0
	c = 0
	for i in range(len(b)):
		if b[i] == '1':
			c += 1
		else:
			s += 1
	if c > 0:
		print('OUT')
	else:
		print('IN')


t = int(input())
while t:
	(r1, r2, r3, r4) = map(int, input().split())
	print('IN' if r1 + r2 + r3 + r4 == 0 else 'OUT')
	t -= 1


T = int(input())
for t in range(T):
	(r1, r2, r3, r4) = map(int, input().split())
	if r1 == r2 == r3 == r4 == 0:
		print('IN')
	elif r1 == r2 == r3 == r4 == 1:
		print('OUT')
	else:
		print('OUT')


t = int(input())
for i in range(0, t):
	(x, y, z, a) = map(int, input().split())
	if x == 0 and y == 0 and (z == 0) and (a == 0):
		print('IN')
	else:
		print('OUT')


t = int(input())
while t > 0:
	r = list(map(int, input().split()))
	if r[0] == 0 and r[1] == 0 and (r[2] == 0) and (r[3] == 0):
		print('IN')
	else:
		print('OUT')
	t = t - 1


n = int(input())
for _ in range(n):
	a = list(map(int, input().split()))
	if a[0] == 0 and a[1] == 0 and (a[2] == 0) and (a[3] == 0):
		print('IN')
	else:
		print('OUT')


a = int(input())
for i in range(a):
	b = [int(x) for x in input().split()]
	print('OUT') if 1 in b else print('IN')


T = int(input())
for t in range(T):
	(R1, R2, R3, R4) = map(int, input().split())
	if R1 == 1 or R2 == 1 or R3 == 1 or (R4 == 1):
		print('OUT')
	else:
		print('IN')


t = int(input())
for i in range(t):
	(a, b, c, d) = map(int, input().split())
	if a == b == c == d == 0:
		print('IN')
	elif a == b == c == d == 1:
		print('OUT')
	else:
		print('OUT')


T = int(input())
for i in range(T):
	R = input()
	for i in R:
		if i == '1':
			G = 1
			break
		else:
			G = 0
	if G == 1:
		print('OUT')
	else:
		print('IN')


n = int(input(''))
for i in range(n):
	A = list(map(int, input('').split()))
	if A[0] == 0 and A[1] == 0 and (A[2] == 0) and (A[3] == 0):
		print('IN')
	else:
		print('OUT')


for R1 in range(int(input())):
	(R1, R2, R3, R4) = map(int, input().split())
	if R1 + R2 + R3 + R4 >= 1 and R1 + R2 + R3 + R4 <= 4:
		print('OUT')
	else:
		print('IN')


a = int(input())
for s in range(a):
	(a, b, c, d) = map(int, input().split())
	if a == 0 and a == b == c == d:
		print('IN')
	else:
		print('OUT')