You are planning a trip on a straight road where locations are defined by its distance to some reference point. The trip will start at , it will pass through points , …, in this order, and it will end at , with . You will make exactly two stops, say at points and , with . You want to make the three distances , and as similar as possible. More precisely, your goal is to minimize the difference between the maximum and the minimum of those three distances.
For instance, supose a travel defined with 4 10 23 32 42 50. Here, the optimal choice is to stop at 23 and 32, which gives the distances , and . In this case, the difference is . It is easy to see that we cannot make the difference smaller by choosing two other stopping points.
Input consists of several cases. Each case starts with , followed by , …, . You can assume , and .
For every case, print the minimum difference if we choose the optimal stops.
Input
6 4 10 23 32 42 50 4 0 200000000 700000000 1000000000 5 100000 240000 300000 500000 700000
Output
10 300000000 0