There is a fair going on in Chefland. Chef wants to visit the fair along with his N friends. Chef manages to collect K passes for the fair. Will Chef be able to enter the fair with all his N friends? 

A person can enter the fair using one pass, and each pass can be used by only one person.

------ 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 single line containing two space-separated integers N, K.

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

For each test case, print on a new line YES if Chef will be able to enter the fair with all his N friends and NO otherwise.

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

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

$1 ≤ T ≤ 100$
$1 ≤ N, K ≤ 100$

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

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

----- explanation 1 ------ 
Test case $1$: Chef needs $5$ passes for his friends and one pass for himself and he collected $8$ passes. Thus he will be able to enter the fair with all his friends.

Test case $2$: Chef needs $6$ passes for his friends and one pass for himself while he collected only $3$ passes. Thus he will not be able to enter the fair with all his friends, only three of them can enter the fair.

Test case $3$: Chef needs $2$ passes for his friends and one pass for himself while he collected only $2$ passes. Thus either Chef or one of his friends can't enter the fair.

Test case $4$: Chef needs a total of $2$ passes, one for himself and one for his friend. He collected $2$ passes. Thus he will be able to enter the fair with his friend.

Difficulty: EASY
Tags: Mathematics

Starter code:

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


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


T = int(input())
for i in range(T):
	(N, K) = map(int, input().split())
	A = N + 1
	if A <= K:
		print('YES')
	else:
		print('NO')


T = int(input())
for CRICKETER in range(T):
	(N, K) = map(int, input().split())
	if N < K:
		print('YES')
	else:
		print('NO')


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


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


for _ in range(int(input())):
	(n, k) = map(int, input().split())
	if n + 1 <= k:
		print('YES')
	else:
		print('NO')


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


test = int(input())
ans = []
while test:
	test = test - 1
	(N, K) = [int(x) for x in input().split()]
	if N + 1 - K <= 0:
		ans.append('YES')
	else:
		ans.append('NO')
for i in ans:
	print(i)


for i in range(int(input())):
	n = input().split()
	a = n[0]
	b = n[1]
	if int(b) >= int(a) + 1:
		print('YES')
	else:
		print('NO')


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


t = int(input())
for i in range(t):
	(N, K) = map(int, input().split())
	if K > N:
		print('YES')
	else:
		print('NO')


t = int(input())
for e in range(t):
	(friends, tickets) = map(int, input().split())
	print('YES' if tickets > friends else 'NO')


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


t = int(input())
for i in range(t):
	(n, k) = [int(x) for x in input().split()]
	if n > k - 1:
		print('NO')
	else:
		print('YES')


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


n = int(input())
while n > 0:
	(k, m) = map(int, input().split())
	if k < m:
		print('YES')
	else:
		print('NO')
	n -= 1


T = int(input())
for i in range(T):
	(n, k) = map(int, input().split())
	if k >= n + 1:
		print('YES')
	else:
		print('NO')


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


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


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


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


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


t = int(input())
while t:
	(k, n) = map(int, input().split())
	print('YES' if k < n else 'NO')
	t -= 1


ans = []
for i in range(int(input())):
	T = input().split(' ')
	a = int(T[1]) - int(T[0])
	ans.append(a)
for j in ans:
	if j > 0:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(0, T):
	(N, K) = input().split()
	n = int(N)
	k = int(K)
	if k > n:
		print('YES')
	else:
		print('NO')


def fair_pass(N, K):
	if K > N:
		return 'YES'
	else:
		return 'NO'
X = int(input())
for i in range(X):
	(N, K) = map(int, input().split())
	print(fair_pass(N, K))


for _ in range(int(input())):
	(n, k) = map(int, input().split())
	if n >= k:
		print('NO')
	elif n < k:
		print('YES')


for _ in range(int(input())):
	(x, y) = map(int, input().split())
	if x <= 0 and y <= 0:
		print(0)
		break
	if x < y:
		print('YES')
	elif x >= y:
		print('NO')


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


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


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