#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair PII; #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,n) FOR(i,0,n) #define CLEAR(d) memset((d), 0, (sizeof((d)))) #define ALL(c) (c).begin(), (c).end() #define ABS(x) ((x < 0) ? -(x) : (x)) #define SORT(x) sort((x).begin(), (x).end()) #define RSORT(x) sort((x).begin(), (x).end(), greater() ) #define SIZE(a) ((int)((a).size())) #define MOD 1000000007 #define EPS 1e-10 #define PI (acos(-1)) #define INF 10000000 struct edge { int to; int cost; }; //=================================================== double n, x[120000], y[120000]; class UnionFind { int par[120000]; int rank[120000]; public : void init(int n) { for (int i = 0; i < n; i++) { par[i] = i; rank[i] = 0; } } int find(int x) { if (par[x] == x) { return x; } else { return par[x] = find(par[x]); } } void unite(int x, int y) { x = find(x); y = find(y); if (x == y) return; if (rank[x] < rank[y]) { par[x] = y; } else { par[y] = x; if (rank[x] == rank[y]) rank[x]++; } } bool same(int x, int y) { return find(x) == find(y); } }; double twoPointDistance(int xa, int ya, int xb, int yb) { return sqrt((xa - xb) * (xa - xb) + (ya - yb) * (ya - yb)); } int main() { UnionFind uf; cin >> n; uf.init(n); REP(i, n) { cin >> x[i] >> y[i]; } for (int i = 0; i < n; i++) { for (int j = i+1; j < n; j++) { //cout << twoPointDistance(x[i], y[i], x[j], y[j]) << endl; if (twoPointDistance(x[i], y[i], x[j], y[j]) <= 10) { uf.unite(i, j); } } } double ans = 0; for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { if (uf.same(i, j)) { double t = twoPointDistance(x[i], y[i], x[j], y[j]); if (t > ans) { ans = t; } } } } printf("%.10f\n", (n) ? ans + 2 : 1); return 0; }