#B2054. Calculate the Average Age

    ID: 11136 Type: Default 1000ms 256MiB

Calculate the Average Age

Calculate the Average Age

Given \( n \) students and their ages \( a_1, a_2, \ldots, a_n \), calculate the average age. The result should be rounded to two decimal places. The formula used is: $$\text{average} = \frac{\sum_{i=1}^{n} a_i}{n}.$$

inputFormat

The first line of input is an integer \( n \) representing the number of students. The second line contains \( n \) space-separated integers, each indicating a student's age.

outputFormat

Output a single line containing the average age rounded to two decimal places.

sample

5
10 20 30 40 50
30.00