import sys

a = list(map(int, input().split()))
s = 2*(a[0]*a[1]+a[1]*a[2]+a[0]*a[2])
v = a[0]*a[1]*a[2]
print(s,v,sep='\n')