Chef and Chefina are playing with dice. In one turn, both of them roll their dice at once.

They consider a turn to be *good* if the sum of the numbers on their dice is greater than 6.  
Given that in a particular turn Chef and Chefina got X and Y on their respective dice, find whether the turn was good.

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

- The first line of input will contain a single integer T, denoting the number of test cases.
- Each test case contains two space-separated integers X and Y — the numbers Chef and Chefina got on their respective dice.

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

For each test case, output on a new line, YES, if the turn was good and NO otherwise.

Each character of the output may be printed in either uppercase or lowercase. That is, the strings NO, no, nO, and No will be treated as equivalent.

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

$1 ≤ T ≤ 100$
$1 ≤ X, Y ≤ 6$

----- Sample Input 1 ------ 
4
1 4
3 4
4 2
2 6

----- Sample Output 1 ------ 
NO
YES
NO
YES

----- explanation 1 ------ 
Test case $1$: The sum of numbers on the dice is $1+4 = 5$ which is smaller than $6$. Thus, the turn is not good.

Test case $2$: The sum of numbers on the dice is $3+4 = 7$ which is greater than $6$. Thus, the turn is good.

Test case $3$: The sum of numbers on the dice is $4+2 = 6$ which is equal to $6$. Thus, the turn is not good.

Test case $4$: The sum of numbers on the dice is $2+6 = 8$ which is greater than $6$. Thus, the turn is good.

Difficulty: EASY

Starter code:

Solutions:
n = int(input())
for i in range(n):
	(x, y) = map(int, input().split())
	if x + y > 6:
		print('YES')
	else:
		print('NO')


tst = int(input())
for i in range(0, tst):
	(x, y) = map(int, input().split())
	if x + y <= 6:
		print('NO')
	else:
		print('YES')


for _ in range(int(input())):
	l = list(map(int, input().split()))
	if sum(l) > 6:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	s = X + Y
	if s > 6:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	if X + Y > 6:
		print('YES')
	else:
		print('NO')


n = int(input())
for i in range(n):
	(a, b) = map(int, input().split())
	c = a + b
	if c > 6:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	test = input()
	list = test.split(' ')
	X = int(list[0])
	Y = int(list[1])
	if X + Y > 6:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	(x, y) = map(int, input().split())
	if x + y > 6:
		print('YES')
	else:
		print('NO')


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


TC = int(input())
for T in range(TC):
	(x, y) = map(int, input().split())
	if x + y > 6:
		print('YES')
	else:
		print('NO')


def is_good_turn(x, y):
	if x + y > 6:
		return 'YES'
	else:
		return 'NO'
t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	print(is_good_turn(x, y))


test = int(input())
for i in range(test):
	j = input().split(' ')
	num1 = int(j[0])
	num2 = int(j[1])
	if num1 + num2 > 6:
		print('YES')
	else:
		print('NO')


import math
for t in range(int(input())):
	(x, y) = map(int, input().split())
	if x + y > 6:
		print('YES')
	else:
		print('NO')


def findsum(num_list):
	if num_list[0] + num_list[1] > 6:
		return 'YES'
	else:
		return 'NO'
t = int(input())
for i in range(t):
	num_list = list(map(int, input().split()))
	print(findsum(num_list))


e = int(input())
for i in range(e):
	(x, y) = map(int, input().split())
	z = x + y
	if z <= 6:
		print('NO')
	else:
		print('YES')


T = int(input())
for i in range(T):
	x = list(map(int, input().split()))
	if sum(x) > 6:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	x = list(map(int, input().split()))
	b = x[0] + x[1]
	if b > 6:
		print('YES')
	else:
		print('NO')


t = int(input())
while t > 0:
	(x, y) = map(int, input().split())
	if x + y > 6:
		print('YES')
	else:
		print('NO')
	t -= 1


ncase = int(input())
for _ in range(ncase):
	(X, Y) = map(int, input().split())
	if X + Y > 6:
		print('YES')
	else:
		print('NO')