# coding: utf-8 # AtCoder Competition Template v2.1 SHORT (PyPy 7.3.20 / Python 3.11) # oj test -c 'C:\VSCode_program\atcoder\contests\.venv-pypy311\Scripts\python.exe maina.py' -d input/a import sys # ===== 入出力ヘルパ ===== def input() -> str: return sys.stdin.readline().rstrip() def INT() -> int: return int(input()) def MAP(): return map(int, input().split()) def LIST() -> list[int]: return list(MAP()) # ============================================== # =================== main ===================== # ============================================== def main() -> None: # ここに解答を書く Q = INT() for i in range(Q): inp = input().split() if inp[0] == "1": print(int(inp[1]) + int(inp[2])) else: print(i+1) if __name__ == "__main__": main()