#C4919. Maximum Water Depth Calculation

    ID: 48510 Type: Default 1000ms 256MiB

Maximum Water Depth Calculation

Maximum Water Depth Calculation

You are given a rectangular field with dimensions \(L\) (length) and \(W\) (width), and a volume \(V\) of water available for irrigation. The field can be reconfigured optimally such that the water is evenly distributed over the entire area. Your task is to compute the maximum water depth that can be achieved.

The maximum water depth \(D\) is given by the formula:

\(D = \frac{V}{L \times W}\)

Output the result as a floating point number with exactly 6 decimal places.

The input will consist of multiple datasets. Each dataset contains three integers: \(L\), \(W\), and \(V\). The end of input is signaled by a line containing "0 0 0" which should not be processed.

inputFormat

Input is read from standard input (stdin). Each dataset is given on a separate line containing three space-separated integers \(L\), \(W\), and \(V\). The input ends with a line "0 0 0".

outputFormat

For each dataset (except the terminating one), output a single line to standard output (stdout) containing the maximum water depth computed to 6 decimal places.

## sample
10 5 50
20 10 5000
0 0 0
1.000000

25.000000

</p>