#coding:utf-8

import sys



ab=sys.stdin.readline()

rect=ab.split( ' ' )

for i in range(2):

	rect[i]=int( rect[i])

print(( "{} {}".format( rect[0]*rect[1], rect[0]*2+rect[1]*2) ))
import sys



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

print(( "{} {}".format( a*b, a*2+b*2 ) ))
# coding:utf-8
import sys

ab = sys.stdin.readline()
rect = ab.split(" ")
for i in range(2):
    rect[i] = int(rect[i])
print(("{} {}".format(rect[0] * rect[1], rect[0] * 2 + rect[1] * 2)))

import sys

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

-# coding:utf-8 -ab = sys.stdin.readline() -rect = ab.split(" ") -for i in range(2): -    rect[i] = int(rect[i]) -print(("{} {}".format(rect[0] * rect[1], rect[0] * 2 + rect[1] * 2))) +a, b = [int(val) for val in sys.stdin.readline().split(" ")] +print(("{} {}".format(a * b, a * 2 + b * 2)))