Chef has recently moved into an apartment. It takes 30 minutes for Chef to reach office from the apartment. 

Chef left for the office X minutes before Chef was supposed to reach. Determine whether or not Chef will be able to reach on time.

------ 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 integer X.

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

For each test case, output YES if Chef will reach on time, NO otherwise.

The output is case-insensitive. Thus, the strings YES, yes, yeS, and Yes are all considered the same.

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

$1 ≤ T ≤ 60$
$1 ≤ X ≤ 60$

----- Sample Input 1 ------ 
6
30
60
14
29
31
42

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

----- explanation 1 ------ 
Test case 1: Chef leaves $30$ minutes before he is supposed to reach, so he will reach the office exactly on time since it takes $30$ minutes to commute.

Test case 2: Chef will reach $30$ minutes early.

Test case 3: Chef will reach 16 minutes late.

Source: codechef | Difficulty: EASY


Solutions:
t = int(input())
for i in range(t):
	x = int(input())
	if x >= 30:
		print('YES')
	else:
		print('NO')


test = int(input())
while test > 0:
	Time = int(input())
	if Time >= 30:
		print('YES')
	else:
		print('NO')
	test = test - 1


n = int(input())
for i in range(n):
	k = int(input())
	if k >= 30:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	a = int(input())
	if a >= 30:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	n = int(input())
	if n >= 30:
		print('YES')
	else:
		print('NO')


n = int(input())
while n:
	reach_time = int(input())
	if reach_time >= 30:
		print('YES')
	else:
		print('NO')
	n -= 1


t = int(input())
while t >= 1:
	x = int(input())
	print('YES') if x >= 30 else print('NO')
	t -= 1


T = int(input())
for _ in range(T):
	x = int(input())
	if x >= 30:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	leave_time = int(input())
	if leave_time < 30:
		print('NO')
	else:
		print('YES')


TC = int(input())
for i in range(TC):
	X = int(input())
	if X >= 30:
		print('YES')
	else:
		print('NO')


t = int(input())

def time(t):
	x = []
	for i in range(1, t + 1):
		a = int(input())
		x.append(a)
	for num in x:
		if num >= 30:
			print('YES')
		else:
			print('NO')
time(t)


def is_on_time(X):
	if X >= 30:
		return 'YES'
	else:
		return 'NO'
t = int(input())
for i in range(t):
	X = int(input())
	result = is_on_time(X)
	print(result)


test_cases = int(input())
for i in range(test_cases):
	time = int(input())
	if 30 - time <= 0:
		print('YES')
	else:
		print('NO')


test = int(input())
ans = []
while test:
	test = test - 1
	x = int(input())
	if x >= 30:
		ans.append('YES')
	else:
		ans.append('NO')
for i in ans:
	print(i)