White cubes#478

White cubes

1 second
128 megabytes
Easy

Engineer Klepka decided to make cubes from white bars. Each cube has a side length of dm. After making the cubes, the engineer decided to make all the cubes white as well. How many cubes of side dm can the engineer make from one bar, and how many faces need to be painted, given that the dimensions of the bar are integers and are given in decimetres?

Input

Three integers — the dimensions of the bar in dm, each not exceeding 10^6.

Output

Print two integers: the number of cubes obtained and the number of faces that need to be painted.

Examples

Example 1

Loading
Loading