Suppose you have an image of a single unit cube on a sheet. Using only selection, full copy, paste, and move (dragging) operations in the graphic editor PAINT, what is the minimum number of such operations required to construct a rectangular parallelepiped of size A \times B \times C from these cubes?
The input contains the numbers , , . 1 \leq A, B, C \leq 100.
Output the minimal number of operations required.
Example 1