import sys

from functools import reduce



for line in sys.stdin:

    nums = list([int(x) for x in line.split()])

    menseki = reduce(lambda x, y: x * y, nums)

    syuu = reduce(lambda x, y: x + y, nums) * 2

    print((str(menseki) + " " + str(syuu)))



import sys

import operator



for line in sys.stdin:

    nums = list(map(int, line.split()))

    strings = list(map(str, [operator.mul(*nums),

                        operator.add(*nums) * 2]))

    print((" ".join(strings)))



import sys
from functools import reduce

for line in sys.stdin:
    nums = list([int(x) for x in line.split()])
    menseki = reduce(lambda x, y: x * y, nums)
    syuu = reduce(lambda x, y: x + y, nums) * 2
    print((str(menseki) + " " + str(syuu)))

import sys
import operator

for line in sys.stdin:
    nums = list(map(int, line.split()))
    strings = list(map(str, [operator.mul(*nums), operator.add(*nums) * 2]))
    print((" ".join(strings)))

-from functools import reduce +import operator -    nums = list([int(x) for x in line.split()]) -    menseki = reduce(lambda x, y: x * y, nums) -    syuu = reduce(lambda x, y: x + y, nums) * 2 -    print((str(menseki) + " " + str(syuu))) +    nums = list(map(int, line.split())) +    strings = list(map(str, [operator.mul(*nums), operator.add(*nums) * 2])) +    print((" ".join(strings)))