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>
using namespace std;
const long double eps = 1e-9;
const long double PI = acos(-1.0);
const long double da = PI / 6;
struct Point {
  long double x, y, angle, dist;
};
bool operator<(const Point& lhs, const Point& rhs) {
  return lhs.angle < rhs.angle;
}
long double ans;
int n;
Point p[3010], pp[3010];
int k;
long double tree[20010];
int N;
int findL(long double x) {
  int l = 0, r = k - 1;
  while (r - l > 1) {
    int m = (l + r) >> 1;
    if (pp[m].angle > x - eps)
      r = m;
    else
      l = m;
  }
  if (pp[l].angle > x - eps)
    return l;
  else if (pp[r].angle > x - eps)
    return r;
  return -1;
}
int findR(long double x) {
  int l = 0, r = k - 1;
  while (r - l > 1) {
    int m = (l + r) >> 1;
    if (pp[m].angle < x + eps)
      l = m;
    else
      r = m;
  }
  if (pp[r].angle < x + eps)
    return r;
  else if (pp[l].angle < x + eps)
    return l;
  return -1;
}
long double getmax(int i, int L, int R, int qL, int qR) {
  if (L == qL && R == qR) {
    return tree[i];
  } else {
    int M = (L + R) >> 1;
    long double res = 0;
    if (qL <= M) res = max(res, getmax(i * 2, L, M, qL, min(M, qR)));
    if (qR > M) res = max(res, getmax(i * 2 + 1, M + 1, R, max(M + 1, qL), qR));
    return res;
  }
}
void check(long double qL, long double qR, long double dist) {
  int iL = findL(qL);
  int iR = findR(qR);
  if (iL == -1 || iR == -1 || iL > iR) return;
  if (getmax(1, 0, N - 1, iL, iR) > dist - eps) {
    ans = dist;
  }
}
void process() {
  N = 1;
  while (N < k) N <<= 1;
  for (int i = 0; i < (int)(N); i++) tree[N + i] = pp[i].dist;
  for (int i = N - 1; i >= 1; i--) tree[i] = max(tree[i * 2], tree[i * 2 + 1]);
}
void naive() {
  long double ans = 0;
  for (int i = 0; i < (int)(n); i++)
    for (int j = 0; j < (int)(i); j++)
      for (int k = 0; k < (int)(j); k++) {
        long double a = sqrt((p[j].x - p[i].x) * (p[j].x - p[i].x) +
                             (p[j].y - p[i].y) * (p[j].y - p[i].y));
        long double b = sqrt((p[j].x - p[k].x) * (p[j].x - p[k].x) +
                             (p[j].y - p[k].y) * (p[j].y - p[k].y));
        long double c = sqrt((p[k].x - p[i].x) * (p[k].x - p[i].x) +
                             (p[k].y - p[i].y) * (p[k].y - p[i].y));
        long double z = min(min(a, b), c);
        if (z > ans) ans = z;
      }
  ans *= 0.5;
  printf("%.8f - naive\n", double(ans));
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < (int)(n); i++) cin >> p[i].x >> p[i].y;
  for (int i = 0; i < (int)(n); i++) {
    k = 0;
    for (int j = 0; j < (int)(n); j++)
      if (j != i) {
        pp[k] = p[j];
        pp[k].angle = atan2(p[j].y - p[i].y, p[j].x - p[i].x);
        if (pp[k].angle < 0) pp[k].angle += 2 * PI;
        pp[k].dist = sqrt((p[j].x - p[i].x) * (p[j].x - p[i].x) +
                          (p[j].y - p[i].y) * (p[j].y - p[i].y));
        k++;
      }
    sort(pp, pp + k);
    process();
    for (int j = 0; j < (int)(k); j++) {
      if (pp[j].dist < ans) continue;
      long double left = pp[j].angle - da - da + eps;
      long double right = pp[j].angle + da + da - eps;
      if (left > 0) {
        long double qR = left;
        long double qL = 0;
        if (right > 2 * PI) qL = right - 2 * PI;
        check(qL, qR, pp[j].dist);
      }
      if (right < 2 * PI) {
        long double qL = right;
        long double qR = 2 * PI;
        if (left < 0) qR = 2 * PI + left;
        check(qL, qR, pp[j].dist);
      }
    }
  }
  ans *= 0.5;
  printf("%.8f\n", double(ans));
  return 0;
}