Farmer Paul's plan is to disconnect a contiguous block of milking machines, but not the first or the last one.
There are N machines in a row. Machine i produces Mi units of milk (3≤N≤100000, 1≤Mi≤10000). Paul may remove machines i through j with 2≤i≤j≤N−1. He must remove at least one machine. After removal, what is the minimum possible average production of the machines that remain?
Farmer John wants that minimum average if Paul's plot succeeds.
Line 1 contains the integer N.
The next N lines each contain Mi for machine i.
Print the minimum achievable average, rounded to three digits after the decimal point, with exactly three digits after the decimal point.