Chef took an examination two times. In the first attempt, he scored X marks while in the second attempt he scored Y marks. According to the rules of the examination, the best score out of the two attempts will be considered as the final score. 

Determine the final score of the Chef.

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

- The first line contains a single integer T — the number of test cases. Then the test cases follow.
- The first line of each test case contains two integers X and Y — the marks scored by Chef in the first attempt and second attempt respectively.

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

For each test case, output the final score of Chef in the examination.

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

$1 ≤ T ≤ 1000$
$0 ≤X, Y ≤100$

----- Sample Input 1 ------ 
4
40 60
67 55
50 50
1 100

----- Sample Output 1 ------ 
60
67
50
100

----- explanation 1 ------ 
Test Case 1: The best score out of the two attempts is $60$.

Test Case 2: The best score out of the two attempts is $67$.

Test Case 3: The best score out of the two attempts is $50$.

Source: codechef | Difficulty: EASY


Solutions:
t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	print(max(X, Y))


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	print(max(x, y))


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


test = int(input())
ans = []
while test:
	test = test - 1
	(X, Y) = [int(x) for x in input().split()]
	ans.append(max(X, Y))
for i in ans:
	print(i)


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


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


for _ in range(int(input())):
	(x, y) = map(int, input().split())
	if x > y:
		print(x)
	else:
		print(y)