Chef has finally got the chance of his lifetime to drive in the F1 tournament. But, there is one problem. Chef did not know about the [107% rule] and now he is worried whether he will be allowed to race in the main event or not.

Given the fastest finish time as X seconds and Chef's finish time as Y seconds, determine whether Chef will be allowed to race in the main event or not. 

Note that, Chef will only be allowed to race if his finish time is within 107% of the fastest finish time.  

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

- First line will contain T, number of testcases. Then the testcases follow.
- Each testcase contains of a single line of input, two space separated integers X and Y denoting the fastest finish time and Chef's finish time respectively.

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

For each test case, output \texttt{YES} if Chef will be allowed to race in the main event, else output \texttt{NO}. 

You may print each character of the string in uppercase or lowercase (for example, the strings \texttt{YeS}, \texttt{yEs}, \texttt{yes} and \texttt{YES} will all be treated as identical).

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

$1 ≤ T ≤ 2\cdot 10^{4}$
$1 ≤ X ≤ Y ≤ 200$

----- Sample Input 1 ------ 
4
1 2
15 16
15 17
100 107

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

----- explanation 1 ------ 
Test case $1$: The fastest car finished in $1$ second. Thus, Chef should have finished on or before $1.07$ seconds to ensure qualification but he finished in $2$ seconds. Hence, Chef will not be allowed to race in the main event.

Test case $2$: The fastest car finished in $15$ seconds. Thus, Chef should have finished on or before $16.05$ seconds to ensure qualification and he managed to finish in $16$ seconds. Hence, Chef will be allowed to race in the main event.

Test case $3$: The fastest car finished in $15$ seconds. Thus, Chef should have finished on or before $16.05$ seconds to ensure qualification but he finished in $17$ seconds. Hence, Chef will not be allowed to race in the main event.

Test case $4$: The fastest car finished in $100$ seconds. Thus, Chef should have finished on or before $107$ seconds to ensure qualification and he finished just in time for qualification. Hence, Chef will be allowed to race in the main event.

Difficulty: EASY
Tags: Mathematics

Starter code:

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


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


n = int(input())
for i in range(n):
	(p, q) = map(int, input().split())
	print('YES') if q <= 107 / 100 * p else print('NO')


a = int(input())
for i in range(a):
	(x, y) = map(int, input().split())
	p = x * 107 / 100
	if float(y) <= p:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	(F, C) = map(int, input().split())
	ans = F * 1.07
	print('YES' if C <= ans else 'NO')


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


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


for i in range(int(input())):
	(a, b) = [int(i) for i in input().split()]
	p = 107 / 100 * a
	if b <= p:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(0, t):
	xy = list(map(int, input().split()))
	temp = 107 / 100 * xy[0]
	if xy[1] <= temp:
		print('YES')
	else:
		print('NO')


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


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


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


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


for i in range(int(input())):
	(x, y) = map(int, input().split())
	a = x + x * 7 / 100
	if a >= y:
		print('YES')
	else:
		print('NO')


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


f = int(input())
for i in range(0, f):
	(C, V) = map(int, input().split())
	B = 107 * C / 100
	if V <= B:
		print('YES')
	else:
		print('NO')


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


x = int(input())
for i in range(x):
	(a, b) = map(int, input().split())
	c = a * 107 / 100
	if c >= b:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	a = input().split()
	if int(a[0]) * 1.07 >= int(a[1]):
		print('YES')
	else:
		print('NO')


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


for i in range(int(input())):
	(S, H) = map(int, input().split())
	if S * 1.07 < H:
		print('NO')
	else:
		print('YES')