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