Math lesson#11063

Math lesson

1 sekunda
128 megabajtów
Bardzo łatwe

Today Krosh learned about the geometric mean of numbers. The geometric mean of two positive numbers and is \sqrt{x \cdot y}. Denote the geometric mean of the numbers and as g(x, y).

Krosh had three positive real numbers , and . He used them to practice calculating geometric averages. He calculated and wrote down the numbers g(a, b), g(a, c) and g(b, c).

Some time later, Krosh saw the recorded values of the geometric mean. And now he wants to remember what numbers , and he had. Help him find any suitable positive numbers , and .

Dane wejściowe

The first line contains the value of the geometric mean of numbers and , in other words - g(a, b). The second line contains the number g(a, c). The third line contains the number g(b, c).

All three numbers are real, positive, do not exceed 10^9 and contain no more than digits after the decimal point.

Dane wyjściowe

Print any suitable positive numbers , and . The jury will calculate the geometric mean of your numbers. The answer will be considered correct if the absolute or relative error of each of the averages does not exceed 10^{-6}.

It can be proved that for any input that satisfies the constraints, a solution exists.

Przykłady

Przykład 1

Loading
Loading

Przykład 2

Loading
Loading

Przykład 3

Loading
Loading