# add,sub,multi 
a = int(input())
b = int(input())

if a and b:
    addition = a + b
    subtraction = a - b
    muliplication = a*b
    print(addition)
    print(subtraction)
    print(muliplication)