import sys fp sys stdin num int fp readline for in range num print str

1
2
3
4
5
6
7
8
import sys
fp = sys.stdin
num = int(fp.readline())
for i in range(num):
print str(int(str(sum(map(lambda x: int(x[::-1]), fp.readline().split())))[::-1]))