In a coding contest, there are two types of problems:

Easy problems, which are worth 1 point each
Hard problems, which are worth 2 points each

To qualify for the next round, a contestant must score at least X points. Chef solved A Easy problems and B Hard problems. Will Chef qualify or not?

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

- The first line of input contains a single integer T, denoting the number of test cases. The description of T test cases follows.
- Each test case consists of a single line of input containing three space-separated integers — X, A, and B.

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

For each test case, output a new line containing the answer — Qualify if Chef qualifies for the next round, and NotQualify otherwise.

Each character of the answer may be printed in either uppercase or lowercase. For example, if the answer is Qualify, outputs such as qualify, quALiFy, QUALIFY and QuAlIfY will also be accepted as correct.

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

$1 ≤ T ≤ 100$
$1 ≤ X ≤ 100$
$0 ≤ A, B ≤ 100$

----- Sample Input 1 ------ 
3
15 9 3
5 3 0
6 2 8

----- Sample Output 1 ------ 
Qualify
NotQualify
Qualify

----- explanation 1 ------ 
Test Case $1$: Chef solved $9$ easy problems and $3$ hard problems, making his total score $9\cdot 1 + 3\cdot 2 = 15$. He needs at least $15$ points to qualify, which he has and hence he qualifies.

Test Case $2$: Chef solved $3$ easy problems and $0$ hard problems, making his total score $3\cdot 1 + 0\cdot 2 = 3$. He needs at least $5$ points to qualify, which he doesn't have and hence doesn't qualify.

Test Case $3$: Chef solved $2$ easy problems and $8$ hard problems, making his total score $2\cdot 1 + 8\cdot 2 = 18$. He needs at least $6$ points to qualify, which he has and hence he qualifies.

Difficulty: EASY

Solutions:
t = int(input())
for tc in range(t):
	(x, a, b) = map(int, input().split())
	if a + 2 * b >= x:
		print('Qualify')
	else:
		print('NotQualify')


T = int(input())
for i in range(T):
	(X, A, B) = map(int, input().split())
	if A + 2 * B >= X:
		print('Qualify')
	else:
		print('NotQualify')


t = int(input())
for i in range(t):
	(x, a, b) = map(int, input().split(' '))
	c = a * 1 + b * 2
	if c >= x:
		print('Qualify')
	else:
		print('NotQualify')


t = int(input())
while t > 0:
	(x, a, b) = map(int, input().split())
	print('Qualify' if a + 2 * b >= x else 'NotQualify')
	t -= 1


i = int(input())
while i > 0:
	(a, b, c) = [int(a) for a in input().split()]
	if b * 1 + c * 2 >= a:
		print('Qualify')
	else:
		print('NotQualify')
	i = i - 1


T = int(input())
for tc in range(T):
	(X, A, B) = input().split()
	X = int(X)
	A = int(A)
	B = int(B)
	N = int(A + B * 2)
	if N >= X:
		print('Qualify')
	else:
		print('NotQualify')


t = int(input())
for i in range(t):
	(X, A, B) = list(map(int, input().split()))
	a = A * 1 + B * 2
	if a >= X:
		print('Qualify')
	else:
		print('NotQualify')


k = int(input())
for i in range(k):
	(a, b, c) = map(int, input().split())
	if a <= b + c * 2:
		print('Qualify')
	else:
		print('NotQualify')


T = int(input())
while T:
	T -= 1
	(X, A, B) = map(int, input().split())
	if A + B * 2 >= X:
		print('Qualify')
	else:
		print('NotQualify')


for _ in range(int(input())):
	(a, b, c) = map(int, input().split())
	if b + c * 2 >= a:
		print('Qualify')
	else:
		print('NotQualify')


T = int(input())
for i in range(T):
	(x, N, M) = map(int, input().split())
	a = N + 2 * M
	if x > a:
		print('NotQualify')
	else:
		print('Qualify')


n = int(input())
for i in range(n):
	(x, a, b) = map(int, input().split())
	z = a + b * 2
	if z >= x:
		print('Qualify')
	else:
		print('NotQualify')


for _ in range(int(input())):
	(x, a, b) = map(int, input().split())
	if a * 1 + b * 2 >= x:
		print('Qualify')
	else:
		print('NotQualify')


def qualify(X, A, B):
	total_score = A + 2 * B
	if total_score >= X:
		return 'Qualify'
	else:
		return 'NotQualify'
t = int(input())
for i in range(t):
	(X, A, B) = map(int, input().split())
	print(qualify(X, A, B))


for _ in range(int(input())):
	(X, A, B) = map(int, input().split())
	total = A + 2 * B
	if total >= X:
		print('Qualify')
	else:
		print('NotQualify')


T = int(input())
for i in range(T):
	(X, Y, Z) = map(int, input().split())
	if Y * 1 + Z * 2 >= X:
		print('Qualify')
	else:
		print('NotQualify')


t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split())
	m = y * 1 + z * 2
	if m >= x:
		print('Qualify')
	else:
		print('NotQualify')


n = int(input())
for i in range(n):
	(a, b, c) = map(int, input().split())
	s = b * 1 + c * 2
	if s >= a:
		print('Qualify')
	else:
		print('NotQualify')


for i in range(int(input())):
	(T, E, H) = map(int, input().split())
	if E + H * 2 >= T:
		print('Qualify')
	else:
		print('NotQualify')


T = int(input())
for tc in range(T):
	(x, a, b) = input().split()
	x = int(x)
	a = int(a)
	b = int(b)
	n = int(a + b * 2)
	if n >= x:
		print('Qualify')
	else:
		print('NotQualify')


t = int(input())
for _ in range(t):
	(points_needed, easy, hard) = map(int, input().split())
	if points_needed - easy - 2 * hard <= 0:
		print('Qualify')
	else:
		print('NotQualify')


t = int(input())
for _ in range(t):
	(x, a, b) = list(map(int, input().split()))
	total = a + b * 2
	if total >= x:
		print('Qualify')
	else:
		print('NotQualify')


num = int(input())
for i in range(num):
	(x, y, z) = map(int, input().split())
	if y + z * 2 >= x:
		print('Qualify')
	else:
		print('NotQualify')