eolymp
bolt
Try our new interface for solving problems
Problems

Math lesson

Math lesson

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

Krosh had three positive real numbers a, b and c. 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 a, b and c he had. Help him find any suitable positive numbers a, b and c.

Input

The first line contains the value of the geometric mean of numbers a and b, 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 109 and contain no more than 6 digits after the decimal point.

Output

Print any suitable positive numbers a, b and c. 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.

Time limit 1 second
Memory limit 128 MiB
Input example #1
12
20
15
Output example #1
16.000000000000000
9.000000000000000
25.000000000000000
Input example #2
1.234567
2.345678
3.456789
Output example #2
0.837741803571465
1.819362088642601
6.567901060000794
Input example #3
0.000001
0.000001
0.000001
Output example #3
0.000001000000000
0.000001000000000
0.000001000000000
Source 2020 Cycle of Internet Olympiads for schoolchildren, First team contest, October 18, Problem G