#C7439. Expected Sum Calculation
Expected Sum Calculation
Expected Sum Calculation
You are given an integer \(n\) and a sequence \(S\) of \(n\) floating-point numbers. Your task is to compute the expected sum defined by the formula:
\(E = \frac{\sum_{i=1}^{n}{S_i}}{n}\)
Read the input from stdin and output the result to stdout with exactly six decimal places.
inputFormat
The first line contains an integer \(n\) representing the number of elements in the sequence. The second line contains \(n\) space-separated floating-point numbers representing the sequence \(S\).
outputFormat
Output the expected sum computed as \(\frac{\sum_{i=1}^{n}{S_i}}{n}\) with exactly six decimal places.
## sample1
5.0
5.000000