import sys



a, b = [int(i) for i in sys.stdin.readline().split(' ')]



print((a * b, (a + b) * 2))
params = input().rstrip().split(' ')

square = int(params[0]) * int(params[1])

length = (int(params[0]) + int(params[1])) * 2



print((square, length))
import sys

a, b = [int(i) for i in sys.stdin.readline().split(" ")]
print((a * b, (a + b) * 2))

params = input().rstrip().split(" ")
square = int(params[0]) * int(params[1])
length = (int(params[0]) + int(params[1])) * 2
print((square, length))

-import sys - -a, b = [int(i) for i in sys.stdin.readline().split(" ")] -print((a * b, (a + b) * 2)) +params = input().rstrip().split(" ") +square = int(params[0]) * int(params[1]) +length = (int(params[0]) + int(params[1])) * 2 +print((square, length))