Q = int(input()) for i in range(Q): cmd, *query = [int(s) for s in input().split()] if cmd == 1: A, B = query print(A + B) else: print(i + 1)