Q = int(input()) for i in range(Q): S, A, B = input().split() if S == 1: print(int(A) + int(B)) else: print(i)