import sys
a,b,c=map(int,sys.stdin.readline().split())
s=2*(a*b+b*c+c*a)
v=a*b*c
print(s)
print(v)