Golden Brick
...And they traveled all day towards the vibrant palace and the marble city. This city was constructed from stones and marble, built by Barik ibn Faki, the father of the jinn. He also constructed the Colorful Palace, named for its unique construction from silver and gold bricks, unmatched anywhere else on earth...
"One Thousand and One Nights", "The Tale of Ajib and Gharib"
It is said that King Anushirvan once commanded that bricks of gold be brought to him. He promised great wealth and the position of vizier to anyone who could fulfill this task.
Eventually, an infidel appeared, presenting the king with a brick that gleamed like gold. However, the king did not immediately reward him. Instead, he ordered the brick to be cut into pieces. Upon doing so, it was revealed that the brick was not gold but wood, with its edges painted to resemble gold. The infidel, like all infidels, was a deceitful trickster. By the king's command, he was promptly bound and executed.
What remained before Anushirvan were cubes of size 1 * 1 * 1, into which the brick had been divided. The king became curious about how many different types of cubes there were and how many cubes existed of each type.
Input
A single line provides three integers L, W, and H (1 ≤ L, W, H ≤ 10^6) - representing the length, width, and height of the brick, respectively.
Output
Each line of the output should contain two numbers: the number of faces painted on any cube, and the total number of such cubes. Each type of cube should be represented by only one line. Lines with zero cubes should not be included.