import sys

# a = int(sys.stdin.readline().rstrip())
# b = int(sys.stdin.readline().rstrip())
a, b = eval("int(sys.stdin.readline().rstrip()) ,"*2)

print(a + b)
print(a - b)
print(a * b)

# a,b=eval("int(input()),"*2)
# print(a+b,a-b,a*b)