a,b,c=map(int,input().split())
S=2*(a*b+b*c+c*a)
V=a*b*c
print(S,end="\n")
print(V)