a,b = list(map(int,input().split()))

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

a, b = list(map(int, input().split()))

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

a, b = list(map(int, input().split()))
print((a * b, 2 * (a + b)))

a, b = list(map(int, input().split()))
print(a * b, 2 * (a + b))

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