# Read two integers from STDIN and print three lines where:
# (1) the first line contains the sum of the two numbers,
# (2) the second line contains the difference of the two numbers (first - second),
# (3) the third line contains the product of the two numbers.
# Enter your code here. Read input from STDIN. Print output to STDOUT
a = int(raw_input())
b = int(raw_input())
print a + b
print a - b
print a * b