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 0. 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.
The first line contains one integer n (1≤n≤106), the count of numbers written on the tape.
The second line contains n integers a1,a2,…,an (∣ai∣≤109), separated by spaces, where ai is the i-th number written on the tape.
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.