A = int(input()) B = int(input()) print(A + B) print(A - B) print(A * B)