x = input().split(' ')

a = int(x[0])

b = int(x[1])



print(((a * b), ((a + b) * 2 )))
nums = input().split()

a = int(nums[0])

b = int(nums[1])

print((a * b, (a + b) * 2))
x = input().split(" ")
a = int(x[0])
b = int(x[1])
print(((a * b), ((a + b) * 2)))

nums = input().split()
a = int(nums[0])
b = int(nums[1])
print((a * b, (a + b) * 2))

-x = input().split(" ") -a = int(x[0]) -b = int(x[1]) -print(((a * b), ((a + b) * 2))) +nums = input().split() +a = int(nums[0]) +b = int(nums[1]) +print((a * b, (a + b) * 2))