PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#FW0000017. Núi Sấm (Thunder Mountain)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Núi Sấm (Thunder Mountain)

Thunder Mountain

Source: UVa

Version: Phuoc Hung OJ Extended

Problem Statement

Towns have integer coordinates. Direct travel is allowed only if Euclidean distance is at most 1010. Find the largest shortest distance between any two towns, or print Send Kurdy if disconnected.

Input

nn followed by nn integer coordinate pairs.

Output

Print Send Kurdy or a real value with four decimal places.

Subtasks

  • Subtask 1 (40 points): n≤12n\le 12; 2≤n≤1002\le n\le 100; −10000≤x,y≤10000-10000\le x,y\le 10000.
  • Subtask 2 (60 points): 2≤n≤1002\le n\le 100; −10000≤x,y≤10000-10000\le x,y\le 10000.

Examples

Input

3
0 0
3 4
6 8

Output

10.0000

Explanation

The direct Euclidean distances are 55, 55, and 1010. All are within the allowed 1010; the maximum shortest route is 10.000010.0000.