#C9460. Running Average Calculation

    ID: 53556 Type: Default 1000ms 256MiB

Running Average Calculation

Running Average Calculation

You are given a list of integer measurements taken at regular intervals. Your task is to compute the running average of these measurements. The running average at position \( i+1 \) is defined as:

\( \text{avg}_i = \frac{\sum_{j=1}^{i+1} a_j}{i+1} \)

where \( a_j \) represents the measurement at the \( j^{th} \) position. Each computed average should be rounded to two decimal places.

If no measurements are provided (i.e. the input is empty), simply output nothing.

inputFormat

The input is given via standard input (stdin) as a single line containing zero or more space-separated integers. Each integer represents a measurement.

outputFormat

Output a single line to standard output (stdout) containing the running averages corresponding to each measurement. Each average must be rounded to two decimal places and separated by a single space. If no measurements are provided, output an empty line.

## sample
2 4 6 8 10
2.00 3.00 4.00 5.00 6.00