Long Tape

No attempts yetTime limit1sMemory limit128 MB

Problem

Jaś found a very long tape at home. Without a second thought he wrote a sequence of integers on it, and soon a new game came to his mind.

Jaś wants to cut off some initial (prefix) part and some final (suffix) part of the tape, each part possibly of length 00. He would like the arithmetic mean of the numbers (their sum divided by how many there are) on the fragment that is left to be as small as possible. The remaining fragment must contain at least one number.

Find the smallest arithmetic mean he can obtain this way.

Input

The first line contains one integer nn (1n1061 \le n \le 10^6), the count of numbers written on the tape.

The second line contains nn integers a1,a2,,ana_1, a_2, \ldots, a_n (ai109|a_i| \le 10^9), separated by spaces, where aia_i is the ii-th number written on the tape.

Output

Print a single number on one line, rounded to two decimal places, equal to the minimum arithmetic mean achievable by the numbers left on the tape.