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

S = 2 * (a*b + b*c + c*a)
V = a*b*c

print(f"{S}\n{V}")