And they traveled all day toward the vibrant palace and the marble city. This city was constructed of stone and marble, built by Barik ibn Faki, the father of the jinn. He also constructed the Colorful Palace, so named because it was built from silver and gold bricks—such a palace was nowhere else on earth...
"One Thousand and One Nights," "The Tale of Ajib and Gharib"

It is said that King Anushirvan once commanded that a brick of gold be brought to him. He promised great wealth and the position of vizier to whoever could fulfill this task.
Eventually, someone brought the king a brick that shimmered like gold. However, the king did not rush to reward this person, but instead ordered the brick to be cut into pieces. His servants did so, revealing that the brick was not truly gold, but wood, with its edges painted to resemble gold. Thus, the attempt at deception was revealed to all.
What remained before Anushirvan were only cubes of size 1 1 1, into which the brick had been cut. The king wondered how many different types of cubes there were, and how many there were of each type.
A single line contains three integers L, W, H (1 \leq L, W, H \leq 10^6): the length, width, and height of the brick.
Each output line should contain two integers: the number of faces painted on a cube, and the total number of such cubes. Each type of cube should be represented by exactly one line. Do not output lines if there are zero cubes of that type.
Example 1