inp = int(input()) for i in range(inp): print(i)
a, b = int(input()), int(input()) print((a + b), (a - b), (a * b), sep='\n')