Problem: Many schoolchildren look for a job for the summer, and one day, when Gerald was still a schoolboy, he also decided to work in the summer. But as Gerald was quite an unusual schoolboy, he found quite unusual work. A certain Company agreed to pay him a certain sum of money if he draws them three identical circles on a plane. The circles must not interfere with each other (but they may touch each other). He can choose the centers of the circles only from the n options granted by the Company. He is free to choose the radius of the circles himself (all three radiuses must be equal), but please note that the larger the radius is, the more he gets paid. 

Help Gerald earn as much as possible.

Input

The first line contains a single integer n — the number of centers (3 ≤ n ≤ 3000). The following n lines each contain two integers xi, yi ( - 104 ≤ xi, yi ≤ 104) — the coordinates of potential circle centers, provided by the Company.

All given points are distinct.

Output

Print a single real number — maximum possible radius of circles. The answer will be accepted if its relative or absolute error doesn't exceed 10 - 6.

Examples

Input

3
0 1
1 0
1 1


Output

0.50000000000000000000


Input

7
2 -3
-2 -3
3 0
-3 -1
1 -2
2 -2
-1 0


Output

1.58113883008418980000

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:1000000000")
using namespace std;
const bool db = false;
double L[3010][3010];
int n, x[3010], y[3010];
pair<int, int> p[3010];
unsigned bit[3010][3010 / 32], cur[3010 / 32];
clock_t start;
int it;
bool EXIT;
int bits[1 << 16];
inline int intr(int i, int j, double r) { return L[i][j] < 2 * r; }
inline int cnt(unsigned r) { return bits[r >> 16] + bits[r & 65535]; }
inline int Get(int id, int to) { return ((bit[id][to >> 5]) >> (to & 31)) & 1; }
inline void Set(int id, int to, int val) {
  if (val == 1) {
    bit[id][to >> 5] |= (1U << (to & 31));
  } else if (Get(id, to)) {
    bit[id][to >> 5] ^= 1U << (to & 31);
  }
}
bool check(double rad) {
  for (int x = 1; x <= n; ++x) {
    for (int i = x + 1; i <= n; ++i) {
      Set(x, i, !intr(x, i, rad));
    }
    for (int y = 1; y < x; ++y) {
      if (Get(y, x)) {
        for (int i = x / 32; 32 * i <= n; ++i) {
          cur[i] = bit[x][i] & bit[y][i];
          if (cnt(cur[i]) > 0) return true;
        }
      }
    }
  }
  return false;
}
int main() {
  scanf("%d", &n);
  start = clock();
  for (int i = 1; i <= n; ++i) {
    scanf("%d%d", &x[i], &y[i]);
    p[i] = make_pair(x[i], y[i]);
  }
  sort(p + 1, p + 1 + n);
  for (int i = 1; i <= n; ++i) {
    x[i] = p[i].first;
    y[i] = p[i].second;
  }
  reverse(p + 1, p + 1 + n);
  for (int i = 1; i < 1 << 16; ++i) {
    bits[i] = bits[i >> 1] + (i & 1);
  }
  for (int i = 1; i <= n; ++i) {
    for (int j = i; j <= n; ++j) {
      L[j][i] = L[i][j] = sqrt((x[i] - x[j]) * (x[i] - x[j]) + .0 +
                               (y[i] - y[j]) * (y[i] - y[j]));
    }
  }
  double l = 1e-5, r = 18e3;
  while (l < r - 1e-6 && !EXIT) {
    if (abs(l - r) / r < 1e-6) {
      break;
    }
    double m = (l + r) / 2.0;
    if (check(m)) {
      l = m;
    } else {
      r = m;
    }
  }
  printf("%.6lf\n", (l + r) / 2.0);
  getchar();
  getchar();
  return 0;
}