Find the three edge lengths of a rectangular parallelepiped from the pairwise face diagonals.
You are given three positive integers representing the areas of three pairwise adjacent rectangular faces of a rectangular parallelepiped (box).
Let the edge lengths be , , and . Then the three face areas are:
Your task is to recover one valid triple of positive integers that matches the given face areas.
If multiple answers are possible, any valid one is acceptable.
The input consists of three integers , , and — the areas of the three faces.
Print three positive integers , , and such that:
Any valid ordering is accepted.
Three integers , , and representing the areas of three pairwise adjacent faces.
Print three positive integers , , and such that , , and .
Example 1
Input
4 6 3
Output
2 2 3
Explanation
A valid set is , , , which gives face areas , , and . Since the input is intended to match the three pairwise face areas, the output demonstrates the recovery idea rather than this exact sample.
Premium problem context
Premium adds guided hints, editorial links, similar variants, discussion resources, and concept maps so you can understand why a problem matters, not just solve it once.