#CCBCHBAHAI0000142. Đồ uống (Drinks)
Đồ uống (Drinks)
Drinks
Source: Codeforces
Version: Phuoc Hung OJ Extended
Problem Statement
There are drinks. The volume percentage of orange juice in drink is . Equal amounts are taken from all drinks and mixed together.
Compute the percentage of orange juice in the resulting mixture.
Input
- The first line contains an integer , the number of drinks.
- The second line contains integers , where is the orange-juice percentage of drink .
Output
Print the orange-juice percentage of the mixture as a real number. The answer is accepted if its absolute or relative error does not exceed .
Subtasks
Subtask 1 (100 points): and .
Examples
Input
3
50 50 100
Output
66.666666666667
Explanation
The three percentages are , , and . Their equal-weight average is
$$\frac{50+50+100}{3}=\frac{200}{3}\approx66.666666666667.$$