The doctor prescribed Chef to take a multivitamin tablet 3 times a day for the next X days.
 
Chef already has Y multivitamin tablets.

Determine if Chef has enough tablets for these X days or not.

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

- The first line contains a single integer T — the number of test cases. Then the test cases follow.
- The first and only line of each test case contains two space-separated integers X and Y — the number of days Chef needs to take tablets and the number of tablets Chef already has.

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

For each test case, output YES if Chef has enough tablets for these X days. 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 ≤ 2000$
$1 ≤X ≤100$
$0 ≤Y ≤1000$

----- Sample Input 1 ------ 
4
1 10
12 0
10 29
10 30

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

----- explanation 1 ------ 
Test Case 1: Chef has $10$ tablets and Chef needs $3$ tablets for $1$ day. Therefore Chef has enough tablets.

Test Case 2: Chef has $0$ tablets and Chef needs $36$ tablets for $12$ days. Therefore Chef does not have enough tablets.

Test Case 3: Chef has $29$ tablets and Chef needs $30$ tablets for $10$ days. Therefore Chef does not have enough tablets.

Test Case 4: Chef has $30$ tablets and Chef needs $30$ tablets for $10$ days. Therefore Chef has enough tablets.

Difficulty: EASY
Tags: Mathematics

Starter code:

Solutions:
t = int(input())
for i in range(0, t):
	days = list(map(int, input().split()))
	if days[0] * 3 <= days[1]:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	if x * 3 <= y:
		print('YES')
	else:
		print('NO')


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


for i in range(int(input())):
	(a, b) = map(int, input().split())
	x = a * 3
	if x <= b:
		print('YES')
	else:
		print('NO')


n = int(input())
for _ in range(n):
	(a, b) = map(int, input().split())
	a1 = 3 * a
	if a1 <= b:
		print('YES')
	else:
		print('NO')


test = int(input())
for i in range(test):
	(a, b) = map(int, input().split())
	r = a * 3
	if r <= b:
		print('YES')
	else:
		print('NO')


p = int(input())
for i in range(p):
	(a, b) = map(int, input().split())
	c = a * 3
	if c <= b:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	(x, y) = map(int, input().split())
	if x * 3 <= y:
		print('YES')
	else:
		print('NO')


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


for k in range(int(input())):
	(a, b) = map(int, input('').split())
	if a * 3 <= b:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	(X, Y) = map(int, input().split())
	if X * 3 <= Y:
		print('YES')
	else:
		print('NO')


n = int(input())
for i in range(n):
	m = input().split()
	if int(m[0]) * 3 <= int(m[1]):
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	if 3 * X <= Y:
		print('YES')
	else:
		print('NO')


t = int(input())
for _ in range(t):
	(a, b) = map(int, input().split())
	if a * 3 <= b:
		print('YES')
	else:
		print('NO')


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


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


n = int(input())
for i in range(n):
	(j, k) = map(int, input().split())
	if k >= j * 3:
		print('YES')
	else:
		print('NO')


t = int(input())
while t != 0:
	(a, b) = map(int, input().split())
	if a * 3 > b:
		print('NO')
	else:
		print('YES')
	t = t - 1


n = int(input())
for i in range(n):
	(n1, n2) = map(int, input().split())
	if n1 * 3 <= n2:
		print('YES')
	else:
		print('NO')


i = int(input(''))
j = 0
while j < i:
	(x, y) = map(int, input('').split())
	if 3 * x <= y:
		op = 'YES'
	else:
		op = 'NO'
	j += 1
	print(op)