a = input().split()

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

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

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

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