27. Surface Area and Volume of a Box

I'm a slow walker, but I never walk backwards.

Task Description

Write a program to compute the surface area and the volume of this box.

p27 the box is solid and is pushed inward from six sides 中間為實心, 六面向內凹

Input Format

There are five lines in the input for $a, b, c, d$, and $e$ respectively.

Output Format

There are two lines in the output. The first line has surface area and the second line has the volume of the box.

Sample Input

6
8
10
1
2

Sample Output

472
392
Sample

Discussion