# coding: utf-8

# Here your code !

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



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

print((a*b, 2*(a + b)))
# coding: utf-8
# Here your code !
a, b = list(map(int, input().split()))
print((str(a * b) + " " + str(2 * (a + b))))

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

-# coding: utf-8 -# Here your code ! -print((str(a * b) + " " + str(2 * (a + b)))) +print((a * b, 2 * (a + b)))