E. Cube
time limit per test
3.5 s
memory limit per test
512 megabytes
input
standard input
output
standard output
Example
Input
2 2 2
Output
0
0
6
18
36
30