Akshat has X rupees to spend in the current month. His daily expenditure is Y rupees, i.e., he spends Y rupees each day. 

Given that the current month has 30 days, find out if Akshat has enough money to meet his daily expenditures for this month.

------ 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 two integers X, Y - the amount of money Akshat has for the current month and his daily expenditure respectively.

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

For each test case, output YES if Akshat has enough money to meet his daily expenditure for 30 days of the month, 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 ≤ 100$
$1 ≤ X, Y ≤ 10^{5}$

----- Sample Input 1 ------ 
3
1000 10
250 50
1500 50

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

----- explanation 1 ------ 
Test Case $1$: Akshat has $1000$ rupees and he wants to spend $30 \times 10 = 300$ rupees in the entire month. Therefore, he has enough money for the entire month.

Test Case $2$: Akshat has $250$ rupees and he wants to spend $30 \times 50 = 1500$ rupees in the entire month. Therefore, he does not have enough money for the entire month.

Test Case $3$: Akshat has $1500$ rupees and he wants to spend $30 \times 50 = 1500$ rupees in the entire month. Therefore, he has enough money for the entire month.

Difficulty: EASY
Tags: Mathematics

Starter code:

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


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


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


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


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


T = int(input())
for i in range(T):
	(N, M) = map(int, input().split())
	if N >= M * 30:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	l = list(map(int, input().split()))
	if l[0] >= l[1] * 30:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(n, m) = map(int, input().split())
	a = 30 * m
	if a <= n:
		print('YES')
	else:
		print('NO')


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


def monthly_budget(A, B):
	if A >= B * 30:
		return 'YES'
	else:
		return 'NO'
N = int(input())
for i in range(N):
	(A, B) = map(int, input().split())
	print(monthly_budget(A, B))


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


def monthly_budget(X, Y):
	if X >= Y * 30:
		return 'YES'
	else:
		return 'NO'
T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	print(monthly_budget(X, Y))


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


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


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


n = int(input())
for i in range(n):
	lst = list(map(int, input().split()))[:2]
	if lst[1] * 30 <= lst[0]:
		print('YES')
	else:
		print('NO')


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