White cubes
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Professor Samodelkin plans to make cubes out of white bars. The length of each cube side is 1 dm. After producing cubes professor decided to make all them white. How many cubes of side 1 dm will be able to make professor out of one bar, and how many faces he has to paint, if it is known that the lengths of bar sides are integers, and also given in decimetres.
Input
Three integers - the sizes of the bar in dm, not greater than 10^6
.
Output
Print the number of received cubes and the number of faces to be painted.
Examples
Input #1
Answer #1
Submissions 16K
Acceptance rate 37%