Chef's son wants to go on a roller coaster ride. The height of Chef's son is X inches while the minimum height required to go on the ride is H inches. Determine whether he can go on the ride 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 integers X and H - the height of Chef's son and the minimum height required for the ride respectively.

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

For each test case, output in a single line, YES if Chef's son can go on the ride. 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 ≤ 1000$
$1 ≤ X, H ≤ 100$

----- Sample Input 1 ------ 
4
15 20
50 48
32 32
38 39

----- Sample Output 1 ------ 
NO
YES
YES
NO
----- explanation 1 ------ 
Test case 1: Chef's son can not go on the ride as his height $<$ the minimum required height. 

Test case 2: Chef's son can go on the ride as his height $≥$ the minimum required height.

Test case 3: Chef's son can go on the ride as his height $≥$ the minimum required height.

Test case 4: Chef's son can not go on the ride as his height $<$ the minimum required height.

Difficulty: EASY
Tags: Mathematics

Starter code:

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


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


T = int(input())
for _ in range(T):
	(X, H) = map(int, input().split())
	if X >= H:
		print('YES')
	else:
		print('NO')


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


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


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


t = int(input())
for u in range(t):
	(X, H) = list(map(int, input().split()))
	if X < H:
		print('NO')
	else:
		print('YES')


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


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


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


t = int(input())
for i in range(t):
	(x, h) = map(int, input().split())
	statement = lambda i, j: 'YES' if i >= j else 'NO'
	print(statement(x, h))


T = int(input())
for i in range(T):
	(h, minh) = map(int, input().split())
	if h < minh:
		print('NO')
	else:
		print('YES')


test = int(input())
ans = []
while test:
	test = test - 1
	(X, H) = [int(x) for x in input().split()]
	if X >= H:
		ans.append('YES')
	else:
		ans.append('NO')
for i in ans:
	print(i)


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


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


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


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


test_cases = int(input())
for i in range(test_cases):
	height = list(map(int, input().split()))
	if height[0] >= height[-1]:
		print('YES')
	else:
		print('NO')


TC = int(input())
for T in range(TC):
	(x, h) = map(int, input().split())
	if x >= h:
		print('YES')
	else:
		print('NO')


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


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


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


o = int(input())
for p in range(o):
	(f, u) = map(int, input().split())
	if f < u:
		print('NO')
	else:
		print('YES')


t = int(input())
i = 1
while i <= t:
	(x, y) = list(map(int, input().split()))
	if x >= y:
		print('YES')
	else:
		print('NO')
	i = i + 1


def can_go_on_ride(height, min_height):
	if height >= min_height:
		return 'YES'
	else:
		return 'NO'
t = int(input())
for i in range(t):
	(x, h) = map(int, input().split())
	result = can_go_on_ride(x, h)
	print(result)


t = int(input())

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


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


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