Chef got his dream seat in F1 and secured a 3^{rd} place in his debut race. He now wants to know the time gap between him and the winner of the race.

You are his chief engineer and you only know the time gap between Chef and the runner up of the race, given as A seconds, and the time gap between the runner up and the winner of the race, given as B seconds. 

Please calculate and inform Chef about the time gap between him and the winner of the race.

------ 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 of input containing two space-separated integers A and B denoting the time gap between Chef and the runner up and the time gap between the runner up and the winner respectively. 

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

For each test case, output the time gap between Chef and the winner of the race.

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

$1 ≤ T ≤ 100$
$1 ≤ A, B ≤ 10$

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

----- Sample Output 1 ------ 
2
7
5
11

----- explanation 1 ------ 
Test case $1$: The time gap between Chef and runner up is $1$ second. The time gap between runner up and the winner is $1$ second. Thus, the time gap between Chef and the winner is $1+1=2$ seconds.

Test case $2$: The time gap between Chef and runner up is $2$ seconds. The time gap between runner up and the winner is $5$ second. Thus, the time gap between Chef and the winner is $2+5=7$ seconds.

Test case $3$: The time gap between Chef and runner up is $3$ seconds. The time gap between runner up and the winner is $2$ second. Thus, the time gap between Chef and the winner is $3+2=5$ seconds.

Test case $4$: The time gap between Chef and runner up is $5$ seconds. The time gap between runner up and the winner is $6$ second. Thus, the time gap between Chef and the winner is $5+6=11$ seconds.

Difficulty: EASY
Tags: Mathematics

Starter code:

Solutions:
T = int(input())
for i in range(T):
	(a, b) = map(int, input().split())
	print(a + b)


c = int(input())
for i in range(c):
	(x, y) = map(int, input().split(' '))
	print(x + y)


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


for t in range(int(input())):
	(i, j) = map(int, input().split(' '))
	print(i + j)


t = int(input())
for i in range(0, t):
	(a, b) = map(int, input().split())
	print(a + b)


t = int(input())
for i in range(t):
	(A, B) = map(int, input().split())
	print(A + B)


k = int(input())
for i in range(k):
	(p, q) = map(int, input().split())
	r = p + q
	print(r)


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


t = int(input())
for _ in range(t):
	(a, b) = input().split()
	print(int(a) + int(b))


for _ in range(int(input())):
	(a, b) = map(int, input().split())
	print(a + b)


n = int(input())
for i in range(n):
	(p, q) = map(int, input().split())
	print(p + q)


T = int(input())
for i in range(T):
	(A, B) = map(int, input().split())
	print(A + B)


test = int(input())
ans = []
while test:
	test = test - 1
	(A, B) = [int(x) for x in input().split()]
	ans.append(A + B)
for i in ans:
	print(i)


for i in range(int(input())):
	(a, b) = list(map(int, input().split()))
	print(a + b)


T = int(input())
for CRICKETER in range(T):
	(A, B) = map(int, input().split())
	if (A, B):
		CRICKETER = A + B
		print(CRICKETER)


t = int(input())
for i in range(t):
	(a, b) = map(int, input().split())
	if (a, b >= 1 and a, b <= 10):
		print(a + b)


for i in range(int(input())):
	(a, b) = [int(i) for i in input().split()]
	print(a + b)


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


T = int(input())
for t in range(T):
	(A, B) = map(int, input().split())
	print(A + B)


t = int(input())
for i in range(t):
	(n, m) = map(int, input().split())
	print(n + m)


t = int(input())
for i in range(t):
	(a, b) = [int(x) for x in input().split()]
	print(a + b)


t = int(input())
for e in range(t):
	(a, b) = map(int, input().split())
	print(a + b)


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


for _ in range(int(input())):
	(c, d) = map(int, input().split())
	print(c + d)


t = int(input())
for i in range(t):
	(x, y) = [int(x) for x in input().split()]
	z = x + y
	print(z)


n = int(input())
for i in range(n):
	(a, b) = map(int, input().split())
	print(a + b)


n = int(input())
for i in range(n):
	m = input().split()
	print(int(m[0]) + int(m[1]))


n = int(input())
while n > 0:
	(k, m) = map(int, input().split())
	print(k + m)
	n -= 1


t = int(input())
for i in range(0, t):
	l = list(map(int, input().strip().split()))
	print(l[0] + l[1])


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


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


a = int(input())
for i in range(a):
	(s, v) = map(int, input().split())
	print(s + v)


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


t = int(input())
for ts in range(t):
	(x, y) = map(int, input().split(' '))
	print(y + x)


cases = int(input())
for case in range(cases):
	(x, y) = map(int, input().split())
	print(x + y)


t = int(input())
while t:
	(a, b) = map(int, input().split())
	print(a + b)
	t -= 1


ans = []
for i in range(int(input())):
	T = input().split(' ')
	ans.append(int(T[0]) + int(T[1]))
for j in ans:
	print(j)