There are n threads on the x-axis. The length of the i-th thread, say

, is denoted by

and the location of its starting point by

, both being integers. We want to make a knot in each thread. The location of the knot must also be an integer. The knot can be made at any point in the thread and it is assumed that the length of the thread is not reduced by the knot. You can assume that no thread is totally contained by another, which means that there are no two threads

and
)
such that

and

.
We want to determine the location of the knot for each thread in order to make the distance between the closest two neighboring knots as big as possible.
For example, the figures below show the locations of the knots for six threads. The location of a knot is denoted by a point. All the threads actually lie on the x-axis, however, they are drawn separately to distinguish each other. In Figure I.1, the distance between the closest two knots is 20. However, if we make the knot for

at different location as shown in Figure I.2, the distance between the closest two knots becomes 25, which is what this problem requests.

Given information about the n threads, write a program that calculates the maximum distance between two closest knots.