Paint3D
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Figures on a sheet of photo editor PAІNT can select and copy (in full), paste and move (drag). What is the smallest number of such operations should be used to having an image on a sheet of the unit cube, to build another image - a cuboid with dimensions A
xB
xC
made up of these cubes?
Input
In the input file contains the number of A
, B
, C
. 1 ≤ A, B, C ≤ 100
.
Output
The output file to write the answer - the smallest number of operations.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 38%