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

s = 2 * (a * b + b * c + c * a)

v = a * b * c

print(s)
print(v)