# 백준#10950 A+B - 3 # https://www.acmicpc.net/problem/10950 count = int(input()) for _ in range(count): A, B = [int(x) for x in input().split(" ")] print(A+B)