SP102 LITEPIPE - GX Light Pipeline Inc
Description
The GX Light Pipeline Inc. started to prepare bent pipes for the new transgalactic light pipeline. However during the design of the pipeline they ran into the problem of determing how far the light can reach inside the pipe. In order to improve your scarce budget you decided to fill a summer job at the GX Light Pipeline Inc. Now it's your task to create a program which computes how far the light reaches in the pipeline.
The pipeline consists of seamlessly welded together segments made of non-reflecting opaque materials. The upper points of the pipe contour are described by a sequence of points \[_x_ $ _{1} $ , _y_ $ _{1} $ \], \[_x_ $ _{2} $ , _y_ $ _{2} $ \], \[_x_ $ _{3} $ , _y_ $ _{3} $ \], ..., \[_x $ _{n} $_ , _y $ _{n} $_ \], where _x $ _{k} $_ < _x $ _{k} $_ $ _{+1} $ . The bottom points of the pipe contour are the same points with _y_-coordinate decreased by 1.
The company wants to find the points with maximal _x_-coordinate that the light will reach. The light is emitted by a segment source with endpoints \[_x_ $ _{1} $ , _y_ $ _{1} $ \] and \[_x_ $ _{1} $ , _y_ $ _{1} $ -1\] (endpoints are emitting light too). Assume that the light is not bent at the pipe bent points and the bent points do not stop the light beam.

Input Format
Each test case starts with the number of bent points _n_. Each of the next _n_ lines contains a pair of real values _x $ _{i} $_ , _y $ _{i} $_ separated by space.
The number of bent points never excedes 200.
There are many test cases. Input terminates with _n_ = 0.
Output Format
For each test case your program should output on a single line the maximal _x_-coordinate of the point where the light can reach from the source segment, written with precision of two decimal places. If the light goes trough all the pipe, your program should output _x $ _{n} $_ .