A reversed arabic no is one whose digits have been written in the reversed order. However in this any trailing zeroes are omitted. The task at hand here is a simple one. You need to add two numbers which have been written in reversed arabic and return the output back in reversed arabic form, assuming no zeroes were lost while reversing.


-----Input-----
The input consists of N cases. The first line of the input contains only a positive integer N. Then follow the cases. Each case consists of exactly one line with two positive integers seperated by space. These are the reversednumbers you are to add.


-----Output-----
For each case, print exactly one line containing only one integer- the reversed sum of two reversed numbers. Omit any leading zeroes in the output.


-----Example-----
Input:
1
24 1

Output:
34

Difficulty: UNKNOWN_DIFFICULTY

Solutions:
n = int(input())
for index in range(0, n):
	(a, b) = list(map(str, input().split()))
	a = int(a[::-1])
	b = int(b[::-1])
	a = str(a + b)
	a = int(a[::-1])
	print(a)


for _ in range(int(input())):
	(n, m) = input().split()
	n = int(n[::-1])
	m = int(m[::-1])
	ans = str(n + m)[::-1]
	print(int(ans))


T = int(input())
for ca in range(0, T):
	(x, y) = input().split(' ')
	z = int(str(int(x[::-1]) + int(y[::-1]))[::-1])
	print(z)


t = int(input())
for i in range(t):
	inp = input().split()
	a = list(inp[0])
	b = list(inp[1])
	a.reverse()
	b.reverse()
	x = int(''.join(a))
	y = int(''.join(b))
	c = list(str(x + y))
	c.reverse()
	z = int(''.join(c))
	print(z)


t = int(input(''))
for i in range(t):
	(s1, s2) = input('').split()
	s1 = str(int(s1))
	s2 = str(int(s2))
	s1 = s1[::-1]
	s2 = s2[::-1]
	sum = int(s1) + int(s2)
	sum = str(sum)
	sum = sum[::-1]
	print(int(sum))


for case in range(int(input())):
	(a, b) = input().split()
	print(str(int(a[::-1]) + int(b[::-1]))[::-1].lstrip('0'))


case = int(input())
for i in range(0, case):
	try:
		l = [elem for elem in input().split()]
		res = int(l[0][::-1]) + int(l[1][::-1])
		print(int(str(res)[::-1]))
	except:
		break


N = int(input())
i = 0
while i < N:
	a = input()
	a = list(a)
	a.reverse()
	a = ''.join(a)
	a = a.split()
	a = int(a[0]) + int(a[1])
	a = list(str(a))
	a.reverse()
	a = ''.join(a)
	a = str(int(a))
	i = i + 1
	print(a)


for tst in range(int(input())):
	(m, n) = input().split()
	m = m[::-1]
	n = n[::-1]
	m = int(m)
	n = int(n)
	x = m + n
	x = str(x)
	x = x[::-1]
	x = int(x)
	print(x)


def main():
	test = int(input())
	for i in range(test):
		x = input()
		l = x.split()
		a = str(l[0])
		b = str(l[1])
		a = a[::-1]
		b = b[::-1]
		c = int(a) + int(b)
		s = str(c)
		s = s[::-1]
		print(int(s))

def __starting_point():
	main()
__starting_point()


t = int(input())
for i in range(t):
	a = input().split()
	print(int(repr(int(a[0][::-1]) + int(a[1][::-1]))[::-1]))


for i in range(int(input())):
	x = input()
	a = x.split()[0]
	b = x.split()[1]
	print(str(int(str(int(a[::-1]) + int(b[::-1]))[::-1])))