nums = input().split()

a = int(nums[0])

b = int(nums[1])

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

a = int(nums[0])

b = int(nums[1])



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

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

-print((a * b, (a + b) * 2)) +print((a * b, 2 * a + 2 * b))