Angry Cows

Find the smallest launch power whose chain of shrinking blast radii clears all hay bales on a line.

Medium7Binary searchDynamic programmingTwo pointersNo attempts yetTime limit2sMemory limit512 MB

Problem

Bessie built a game called "Angry Cows". A slingshot launches one cow onto a number line, and the goal is to detonate every hay bale on that line.

There are NN hay bales at distinct integer positions x1,x2,,xNx_1, x_2, \ldots, x_N. A cow launched with power RR that lands at position xx detonates every hay bale in the range xRx - R to x+Rx + R. Those bales then all explode at the same time with blast radius R1R - 1, and every bale caught in one of those blasts that has not exploded yet explodes at the same time with blast radius R2R - 2. The chain continues until no new bale explodes or the radius drops below 00.

The landing position does not have to be an integer. Find the smallest power RR for which some landing position detonates all NN bales.

Input

The first line contains NN (2N500002 \le N \le 50\,000).

Each of the next NN lines contains one position xix_i (0xi10000000000 \le x_i \le 1\,000\,000\,000). All positions are distinct, and they are not necessarily sorted.

Output

Print the smallest power RR that detonates every hay bale, with exactly one digit after the decimal point. The answer is always a multiple of 0.50.5.

Note

Suppose the bales sit at 1,3,8,10,111, 3, 8, 10, 11. A cow launched with power 33 that lands at position 55 detonates the bales at 33 and 88. Those two explode together with radius 22 and catch the bales at 11 and 1010, which explode together with radius 11 and catch the bale at 1111. The last bale explodes with radius 00.