A problem setter is called an *expert* if at least 50 \% of their problems are approved by Chef.

Munchy submitted X problems for approval. If Y problems out of those were approved, find whether Munchy is an *expert* or not.

------ 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 two space-separated integers X and Y - the number of problems submitted and the number of problems that were approved by Chef.

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

For each test case, output on a new line YES, if Munchy is an *expert*. Otherwise, print NO.

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

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

$1 ≤ T ≤ 1000$
$1 ≤ Y ≤X ≤ 10^{6}$

----- Sample Input 1 ------ 
4
5 3
1 1
4 1
2 1

----- Sample Output 1 ------ 
YES
YES
NO
YES
----- explanation 1 ------ 
Test case $1$: We are given that $3$ out of $5$ problems were approved. Thus, $60 \%$ of the problems were approved. Since at least $50 \%$ of the problems were approved, Munchy is an *expert*. 

Test case $2$: We are given that $1$ out of $1$ problems were approved. Thus, $100 \%$ of the problems were approved. Since at least $50 \%$ of the problems were approved, Munchy is an *expert*. 

Test case $3$: We are given that $1$ out of $4$ problems were approved. Thus, $25 \%$ of the problems were approved. Since at least $50 \%$ of the problems were not approved, Munchy is not an *expert*. 

Test case $4$: We are given that $1$ out of $2$ problems were approved. Thus, $50 \%$ of the problems were approved. Since at least $50 \%$ of the problems were approved, Munchy is an *expert*.

Difficulty: EASY

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


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


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


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


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


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


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


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


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


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


n = int(input())
for _ in range(n):
	(X, Y) = map(int, input().split())
	if X % 2 == 0:
		res = int(X / 2)
	else:
		res = int(X / 2) + 1
	if Y >= res:
		print('YES')
	else:
		print('NO')


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


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


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


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


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


for testcase in range(int(input())):
	(x, y) = map(int, input().split(' '))
	if y >= x / 2:
		print('YES')
	else:
		print('NO')


import math
T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	Z = Y >= math.ceil(X / 2)
	if Z or X == Y:
		print('YES')
	else:
		print('NO')


T = int(input())
for _ in range(T):
	(x, y) = map(int, input().split())
	if y >= x / 2:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	(x, n) = list(map(int, input().split()))
	if n >= x / 2:
		print('YES')
	else:
		print('NO')


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


x = int(input())
for i in range(x):
	(y, z) = map(int, input().split())
	x1 = y / 2
	if x1 <= z:
		print('YES')
	else:
		print('NO')


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