def prod(int_list):

	p = 1

	for i in int_list:

		p *= i

	return p

	

int_ary = [int(s) for s in input().split(" ")]

print((prod(int_ary), 2 * sum(int_ary)))
# encoding:utf-8



input = list(map(int, input().split()))

height = input[0]

width = input[1]

area = height * width

circumference = (height + width) * 2

print((area), end=' ')

print(circumference)
def prod(int_list):
    p = 1
    for i in int_list:
        p *= i
    return p


int_ary = [int(s) for s in input().split(" ")]
print((prod(int_ary), 2 * sum(int_ary)))

# encoding:utf-8
input = list(map(int, input().split()))
height = input[0]
width = input[1]
area = height * width
circumference = (height + width) * 2
print((area), end=" ")
print(circumference)

-def prod(int_list): -    p = 1 -    for i in int_list: -        p *= i -    return p - - -int_ary = [int(s) for s in input().split(" ")] -print((prod(int_ary), 2 * sum(int_ary))) +# encoding:utf-8 +input = list(map(int, input().split())) +height = input[0] +width = input[1] +area = height * width +circumference = (height + width) * 2 +print((area), end=" ") +print(circumference)