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



s = a*b

c = a*2 + b*2



print((s, c))
(a, b) = list(map(int, input().split(' ')))



s = a*b

r = 2*(a+b)



print((s, r))



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

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

-a, b = list(map(int, input().split(" "))) +(a, b) = list(map(int, input().split(" "))) -c = a * 2 + b * 2 -print((s, c)) +r = 2 * (a + b) +print((s, r))