Longest Lane

Find the longest straight segment that fits inside a simple polygon given in counterclockwise order.

Medium7GeometryBrute forceNo attempts yetTime limit1sMemory limit512 MB

Problem

Mr. KM, the mayor of KM City, decided to build a new elementary school. The site for the school has an awkward polygonal shape, and that caused several problems. The most serious one is that there is not enough room for a short distance running lane. Compute the maximum length of a lane that fits inside the site.

The lane is a straight line segment whose width can be ignored. The boundary of the site is a simple polygon that does not intersect itself, and the lane may touch the boundary. The boundary is not necessarily convex.

Input

The input holds several test cases and ends with a line containing a single 0. The first line of each test case has an integer NN (3N1003 \leq N \leq 100). Each of the next NN lines has two integers xix_i and yiy_i (1000xi,yi1000-1000 \leq x_i, y_i \leq 1000), the coordinates of one vertex of the polygonal boundary, given in counterclockwise order.

Output

For each test case print one line in the form Case k: L. Here kk is the test case number starting at 1, and LL is the maximum lane length rounded to six digits after the decimal point. Always print exactly six digits after the decimal point. In every test case the answer is far enough from a rounding boundary.