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