Janmansh has to submit 3 assignments for Chingari before 10 pm and he starts to do the assignments at X pm. Each assignment takes him 1 hour to complete. Can you tell whether he'll be able to complete all assignments on time or not?

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

- The first line will contain T - the number of test cases. Then the test cases follow.
- The first and only line of each test case contains one integer X - the time when Janmansh starts doing the assignemnts.

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

For each test case, output Yes if he can complete the assignments on time. Otherwise, output No.

You may print each character of Yes and No in uppercase or lowercase (for example, yes, yEs, YES will be considered identical).

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

$1 ≤T ≤10$
$1 ≤X ≤9$

----- Sample Input 1 ------ 
2
7
9

----- Sample Output 1 ------ 
Yes
No

----- explanation 1 ------ 
Test case-1: He can start at $7$pm and finish by $10$ pm. Therefore he can complete the assignments.

Test case-2: He can not complete all the $3$ assignments if he starts at $9$ pm.

Source: codechef | Difficulty: EASY
Tags: Mathematics


Solutions:
t = int(input())
for i in range(t):
	x = int(input())
	if x + 3 <= 10:
		print('Yes')
	else:
		print('No')


for i in range(int(input())):
	x = int(input())
	if x <= 7:
		print('Yes')
	else:
		print('No')


T = int(input())
for i in range(T):
	X = int(input())
	hour_allotted = 10 - X
	if hour_allotted >= 3:
		print('Yes')
	else:
		print('No')


for _ in range(int(input())):
	a = int(input())
	if a + 3 <= 10:
		print('Yes')
	else:
		print('No')


t = int(input())
for i in range(t):
	n = int(input())
	if n <= 7:
		print('Yes')
	else:
		print('No')


T = int(input())
for i in range(T):
	X = int(input())
	if X < 8:
		print('Yes')
	else:
		print('No')


for i in range(int(input())):
	a = int(input())
	if a <= 7:
		print('Yes')
	elif a > 7:
		print('No')


import math
n = int(input())
for i in range(n):
	x = int(input())
	print('Yes' if x + 3 <= 10 else 'No')


t = int(input())
for ii in range(t):
	x = int(input())
	h = 10 - x
	if h >= 3:
		print('Yes')
	else:
		print('No')


x = int(input())
for i in range(0, x):
	j = int(input())
	o = j + 3
	if o <= 10:
		print('Yes')
	else:
		print('No')


for i in range(int(input())):
	x = int(input())
	d = 3 * 60 // 60
	if d + x > 10:
		print('No')
	else:
		print('Yes')