a,b,c = map(int,input().split())
s = 2 * (a*b + a*c+ b*c)
v = a * b * c
print(s)
print(v)

输入三个输 a,b,c = map(int,input().split)