L,B,H=map(int,input().split())
s=L*B*H
v=2*(L*B+B*H+L*H)
print(v,s,end=" ")

0e6fe909d09c0cc2ae05b11992e75dc15b4eb29e
<mask token>

<mask token>
print(v, s, end=' ')

L, B, H = map(int, input().split())
s = L * B * H
v = 2 * (L * B + B * H + L * H)
print(v, s, end=' ')

L,B,H=map(int,input().split())
s=L*B*H
v=2*(L*B+B*H+L*H)
print(v,s,end=" ")
