시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB43266.667%

문제

Mr. KM, the mayor of KM city, decided to build a new elementary school. The site for the school has an awkward polygonal shape, which caused several problems. The most serious problem was that there was not enough space for a short distance racetrack. Your task is to help Mr. KM to calculate the maximum possible length for the racetrack that can be built in the site. The track can be considered as a straight line segment whose width can be ignored. The boundary of the site has a simple polygonal shape without self-intersection, and the track can touch the boundary. Note that the boundary might not be convex.

입력

The input consists of multiple test cases, followed by a line containing "0". Each test case has the following format. The first line contains an integer $N$ ($3 \leq N \leq 100$). Each of the following $N$ lines contains two integers $x_i$ and $y_i$ ($-1,000 \leq x_i, y_i \leq 1,000$), which describe the coordinates of a vertex of the polygonal border of the site, in counterclockwise order.

출력

For each test case, print its case number and the maximum possible length of the track in a line. The answer should be given as a floating point number with an absolute error of at most $10^{-6}$.

예제 입력 1

4
0 0
10 0
10 10
0 10
3
0 0
1 0
0 1
0

예제 출력 1

Case 1: 14.142135624
Case 2: 1.41421356