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 long mk = 200005;
const long long logn = 29;
const long long mod = 1e9 + 7;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int n, m;
int tc;
vector<int> g[mk];
struct point {
  double x, y;
  bool operator<(const point &p) const {
    if (x == p.x)
      return y < p.y;
    else
      return x < p.x;
  }
} p[mk], a[mk], st[mk];
double dist(point A, point B) {
  return sqrt((A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y));
}
double cross(point a, point b, point c) {
  return 1.0 * (b.x - a.x) * (c.y - a.y) + 1.0 * (c.x - a.x) * (b.y - a.y);
}
double work() {
  if (!m) return 0;
  if (m == 1) return 0;
  if (m == 2) return dist(a[0], a[1]);
  int top = 0;
  for (int i = 0; i < m; i++) {
    while (top >= 2 && cross(st[top - 2], st[top - 1], a[i]) < 0) top--;
    st[top++] = a[i];
  }
  int t = top + 1;
  for (int i = m - 2; ~i; i--) {
    while (top >= t && cross(st[top - 2], st[top - 1], a[i]) < 0) top--;
    st[top++] = a[i];
  }
  double ret = 0, d1, d2;
  st[top] = st[0];
  int k = 1;
  for (int i = 0; i < top; i++) {
    while (cross(st[i], st[i + 1], st[k]) < cross(st[i], st[i + 1], st[k + 1]))
      k = (k + 1) % top;
    d1 = dist(st[i], st[k]);
    d2 = dist(st[i + 1], st[k]);
    ret = max(ret, max(d1, d2));
  }
  return ret;
}
bool check(double x) {
  for (int i = 1; i <= n; i++) {
    m = 0;
    for (int j = 1; j <= n; j++)
      if (dist(p[i], p[j]) >= 2.0 * x && i != j) a[m++] = p[j];
    double max_dis = work();
    if (max_dis >= 2.0 * x) return 1;
  }
  return 0;
}
void init() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> p[i].x >> p[i].y;
  sort(p + 1, p + n + 1);
}
signed main() {
  init();
  double l = 0, r = 2e5;
  while (l + 1e-6 < r) {
    double mid = (l + r) / 2.0;
    double b = check(mid);
    if (b)
      l = mid;
    else
      r = mid;
  }
  cout << setprecision(10) << fixed << 0.5 * (l + r) << "\n";
}