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 = 3005;
int x[maxn], y[maxn], tu[maxn], xc[maxn], yc[maxn], xe[maxn], u[maxn],
    flag[maxn];
pair<int, int> ls[maxn];
int N, xx, yy, tt = 0;
vector<int> v[maxn];
double q3, area;
inline double dist(int x1, int y1, int x2, int y2) {
  return sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
}
inline double dist(int x1, int y1, int x2, int y2, int x3, int y3) {
  q3 = dist(x2, y2, x3, y3);
  area = (x2 - x1) * (y3 - y1) - (x3 - x1) * (y2 - y1);
  return abs(area / q3);
}
inline int cross(int x1, int y1, int x2, int y2, int x3, int y3) {
  return ((x2 - x1) * (y3 - y1) - (x3 - x1) * (y2 - y1));
}
inline bool cmp(pair<int, int> a, pair<int, int> b) {
  if (cross(xc[1], yc[1], a.first, a.second, b.first, b.second) > 0)
    return true;
  else
    return false;
}
inline bool check(double r) {
  int o, q1, q2, top;
  memset(flag, 0, sizeof(flag));
  int left, down, mink;
  for (int e = 1; e <= N; e++)
    if (tu[e] == 1) {
      o = 0;
      for (int i = 1; i <= N; i++)
        if (dist(x[i], y[i], x[e], y[e]) >= r * 2) flag[i] = e, ++o;
      if (o < 2) continue;
      left = 2147483647, down = 2147483647, mink = 0;
      for (int i = 1; i <= N; i++)
        if (flag[i] == e)
          if ((y[i] < down) || ((y[i] == down) && (x[i] < left))) {
            left = x[i], down = y[i], mink = i;
          }
      o = 1, xc[1] = x[mink], yc[1] = y[mink];
      for (int i = 1; i < v[mink].size(); i++)
        if (flag[v[mink][i]] == e)
          ++o, xc[o] = x[v[mink][i]], yc[o] = y[v[mink][i]];
      top = 2, u[1] = 1, u[2] = 2;
      for (int i = 3; i <= o; i++) {
        while ((top > 2) && (cross(xc[u[top - 1]], yc[u[top - 1]], xc[i], yc[i],
                                   xc[u[top]], yc[u[top]]) > 0))
          --top;
        ++top, u[top] = i;
      }
      o = 2 % top + 1;
      u[top + 1] = u[1];
      for (int i = 1; i <= top; i++) {
        q1 = u[i], q2 = u[i + 1];
        while (dist(xc[u[o % top + 1]], yc[u[o % top + 1]], xc[q1], yc[q1],
                    xc[q2], yc[q2]) >
               dist(xc[u[o]], yc[u[o]], xc[q1], yc[q1], xc[q2], yc[q2]))
          o = o % top + 1;
        if (dist(xc[u[o]], yc[u[o]], xc[q1], yc[q1]) >= 2 * r) return true;
        if (dist(xc[u[o]], yc[u[o]], xc[q2], yc[q2]) >= 2 * r) return true;
      }
    }
  return false;
}
inline bool cct(int a, int b) {
  if (cross(xx, yy, x[a], y[a], x[b], y[b]) > 0)
    return true;
  else
    return false;
}
int main() {
  scanf("%d", &N);
  for (int i = 1; i <= N; i++) scanf("%d %d", &x[i], &y[i]);
  memset(tu, 0, sizeof(tu));
  int leftc = 2147483647, downc = 2147483647, minkc = 0;
  for (int i = 1; i <= N; i++)
    if ((y[i] < downc) || ((y[i] == downc) && (x[i] < leftc))) {
      leftc = x[i], downc = y[i], minkc = i;
    }
  for (int i = 1; i <= N; i++) {
    v[i].clear();
    v[i].push_back(i);
    for (int j = 1; j <= N; j++)
      if ((y[j] > y[i]) || ((y[j] == y[i]) && (x[j] > x[i]))) v[i].push_back(j);
    xx = x[i], yy = y[i];
    sort(v[i].begin() + 1, v[i].end(), cct);
  }
  int o, top;
  o = 1, xc[1] = x[minkc], yc[1] = y[minkc], xe[1] = minkc;
  for (int i = 1; i < v[minkc].size(); i++)
    ++o, xc[o] = x[v[minkc][i]], yc[o] = y[v[minkc][i]], xe[o] = v[minkc][i];
  top = 2, u[1] = 1, u[2] = 2;
  for (int i = 3; i <= o; i++) {
    while ((top > 2) && (cross(xc[u[top - 1]], yc[u[top - 1]], xc[i], yc[i],
                               xc[u[top]], yc[u[top]]) > 0))
      --top;
    ++top, u[top] = i;
  }
  for (int i = 1; i <= top; i++) tu[xe[u[i]]] = 1;
  double left = 0, right = 15000, mid;
  while (abs(left - right) > 1e-6) {
    mid = (left + right) / 2;
    if (check(mid))
      left = mid;
    else
      right = mid;
  }
  printf("%.7lf\n", mid);
  return 0;
}