import sys

a, b, c = map(int, input().split())
s = 2*(a*b + b*c + c*a)
v = a*b*c
print(f'{s}\n{v}')