'''
Title     : Arithmetic Operators
Subdomain : Introduction
Domain    : Python
Author    : Kalpak Seal
Created   : 28 September 2016
'''
# 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)