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

print(a*b, 2*a+2*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 + 2 * b)

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

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