q = int(input()) for i in range(q): que = list(map(int, input().split())) t = que[0] if t == 1: print(que[1] + que[2]) if t == 2: print(i + 1)