        ## BASIC ##
a = int(input())
b = int(input())

c = a+b
d = a-b
e = a*b
print (c)
print (d)
print (e)


        ## 2nd way ##

a, b = int(input()), int(input())
print((a + b), (a - b), (a * b), sep='\n')

## (sep=\n) this helps in seperating the results will the new line.
