Paint3D#25

Paint3D

1 second
64 megabytes
Easy

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?

Input

The input contains the numbers , , . 1 \leq A, B, C \leq 100.

Output

Output the minimal number of operations required.

Examples

Example 1

Loading
Loading