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 int MAXN = 3000;
const double eps = 1e-9;
const double pi = acos(-1);
struct Node {
  double x, y, angle;
  bool operator<(Node b) const { return (angle < b.angle); }
} nodes[MAXN], sorted_nodes[MAXN];
struct TNode {
  int l, r;
  double dist;
} tree[MAXN * 10];
double GetDist(Node a) { return sqrt(a.x * a.x + a.y * a.y); }
int tot = 0;
int NewNode() {
  tot++;
  tree[tot].l = tree[tot].r = 0;
  tree[tot].dist = 0;
  return tot;
}
void Insert(int root, int l, int r, int pos, double val) {
  tree[root].dist = max(tree[root].dist, val);
  if (l == r) {
    return;
  }
  int mid = (l + r) / 2;
  if (pos <= mid) {
    if (tree[root].l == 0) {
      tree[root].l = NewNode();
    }
    Insert(tree[root].l, l, mid, pos, val);
  } else {
    if (tree[root].r == 0) {
      tree[root].r = NewNode();
    }
    Insert(tree[root].r, mid + 1, r, pos, val);
  }
}
double GetMax(int root, int l, int r, int from, int to) {
  if ((from <= l) && (r <= to)) {
    return tree[root].dist;
  }
  int mid = (l + r) / 2;
  double ans = 0;
  if (from <= mid) {
    ans = max(ans, GetMax(tree[root].l, l, mid, from, to));
  }
  if (mid < to) {
    ans = max(ans, GetMax(tree[root].r, mid + 1, r, from, to));
  }
  return ans;
}
void Update(int base, int &cur, int m, double direct) {
  if (direct < 0) {
    cur--;
    if (cur < 0) {
      cur += m;
    }
  }
  while (true) {
    int temp = (cur + 1) % m;
    double angle_cur = sorted_nodes[temp].angle,
           angle_base = sorted_nodes[base].angle;
    if (direct > 0) {
      if (angle_cur > angle_base) {
        if (angle_cur - angle_base > pi / 3.0) {
          break;
        }
      } else {
        if (angle_cur - angle_base + 2 * pi > pi / 3.0) {
          break;
        }
      }
      cur = temp;
    } else {
      cur = temp;
      if (fabs(angle_base - angle_cur) < eps) {
        break;
      }
      if (angle_cur < angle_base) {
        if (angle_base - angle_cur < pi / 3.0) {
          break;
        }
      } else {
        if (angle_base - angle_cur + 2 * pi < pi / 3.0) {
          break;
        }
      }
    }
  }
}
int main() {
  int n;
  scanf("%d", &n);
  double ans = 0;
  for (int i = 0; i < n; i++) {
    scanf("%lf%lf", &nodes[i].x, &nodes[i].y);
  }
  for (int i = 0; i < n; i++) {
    int m = 0;
    for (int j = 0; j < n; j++)
      if (fabs(nodes[i].x - nodes[j].x) + fabs(nodes[i].y - nodes[j].y) > eps) {
        sorted_nodes[m].x = nodes[j].x - nodes[i].x;
        sorted_nodes[m].y = nodes[j].y - nodes[i].y;
        sorted_nodes[m].angle = atan2(sorted_nodes[m].y, sorted_nodes[m].x);
        if (sorted_nodes[m].angle < 0) {
          sorted_nodes[m].angle += pi * 2.0;
        }
        m++;
      }
    sort(sorted_nodes, sorted_nodes + m);
    tot = 0;
    NewNode();
    for (int j = 0; j < m; j++) {
      Insert(1, 0, m - 1, j, GetDist(sorted_nodes[j]));
    }
    int l = 0, r = m - 1;
    while ((l + 1 < m) &&
           (sorted_nodes[l + 1].angle - pi / 3.0 < sorted_nodes[0].angle)) {
      l++;
    }
    if (sorted_nodes[r].angle - 5.0 / 3.0 * pi < sorted_nodes[0].angle) {
      r = 0;
    } else {
      while ((r - 1 > l) && (sorted_nodes[r - 1].angle - 5.0 / 3.0 * pi >
                             sorted_nodes[0].angle)) {
        r--;
      }
    }
    for (int j = 0; j < m; j++) {
      Update(j, l, m, (double)1.0);
      Update(j, r, m, (double)-1.0);
      if (r > l) {
        if (r - 1 > l + 1) {
          ans = max(ans, min(GetDist(sorted_nodes[j]),
                             GetMax(1, 0, m - 1, l + 1, r - 1)));
        }
      } else {
        if (r - 1 > 0) {
          ans = max(ans, min(GetDist(sorted_nodes[j]),
                             GetMax(1, 0, m - 1, 0, r - 1)));
        }
        if (l + 1 < m) {
          ans = max(ans, min(GetDist(sorted_nodes[j]),
                             GetMax(1, 0, m - 1, l + 1, m)));
        }
      }
    }
  }
  printf("%.6f\n", ans / 2.0);
  return 0;
}