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;
struct pkt {
  long long x, y;
};
int Cwiartka(pkt a) {
  if (a.x > 0 && a.y >= 0) return 1;
  if (a.x <= 0 && a.y > 0) return 2;
  if (a.x < 0 && a.y <= 0) return 3;
  return 4;
}
long long d(pkt a) { return a.x * a.x + a.y * a.y; }
long long d2(pkt a, pkt b) {
  return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
}
bool por(pkt a, pkt b) {
  int ca = Cwiartka(a);
  int cb = Cwiartka(b);
  if (ca < cb) return true;
  if (ca > cb) return false;
  if (a.y == 0 && b.y == 0) return d(a) < d(b);
  if (a.y == 0 && a.x > 0) return true;
  if (b.y == 0 && b.x > 0) return false;
  if (a.y == 0 && a.x < 0) return true;
  if (b.y == 0 && b.x < 0) return false;
  int l = a.x * b.y;
  int p = b.x * a.y;
  if (l > p) return true;
  if (l < p) return false;
  return d(a) < d(b);
}
bool Ok60(pkt A, pkt C) {
  pkt B = {0, 0};
  long long a = d2(A, B);
  long long b = d2(B, C);
  long long c = d2(A, C);
  return (double)(a + b - c) <= sqrt(a * b);
}
bool Ok180(pkt A, pkt C) {
  pkt B = {0, 0};
  long long w1x = B.x - A.x, w2x = C.x - B.x;
  long long w1y = B.y - A.y, w2y = C.y - B.y;
  return w1x * w2y - w2x * w1y <= (long long)0;
}
vector<int> T;
int l, size;
bool Ok(pkt a) { return abs(a.x) != 30000 && abs(a.y) != 30000; }
void Stworz(int n, vector<pkt> a) {
  if (T.size() == 0) {
    int p = 1;
    while (p < n) p *= 2;
    l = p;
    size = 2 * p - 1;
    for (int i = 0; i <= size; ++i) T.push_back(-1);
  }
  for (int i = 0; i < a.size(); ++i) {
    if (Ok(a[i]))
      T[i + l] = d(a[i]);
    else
      T[i + l] = -1;
  }
  for (int i = l - 1; i >= 1; --i) T[i] = max(T[2 * i], T[2 * i + 1]);
}
int Pyt(int a, int b) {
  a += l;
  b += l;
  int w = max(T[a], T[b]);
  while (a / 2 != b / 2) {
    if (a % 2 == 0) w = max(w, T[a + 1]);
    if (b % 2 == 1) w = max(w, T[b - 1]);
    a /= 2;
    b /= 2;
  }
  return w;
}
void Dod(int& i, int m) {
  ++i;
  if (i == m) i = 0;
}
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  vector<pkt> a;
  set<pair<int, int> > S;
  for (int i = 0; i < n; ++i) {
    int x, y;
    cin >> x >> y;
    if (S.find(make_pair(x, y)) == S.end()) {
      a.push_back({x, y});
      S.insert(make_pair(x, y));
    }
  }
  n = a.size();
  long long odp = 0;
  for (int i = 0; i < n; ++i) {
    vector<pkt> b;
    for (int j = 0; j < n; ++j)
      if (j != i) b.push_back({a[j].x - a[i].x, a[j].y - a[i].y});
    b.push_back({30000, 0});
    b.push_back({-30000, 0});
    b.push_back({0, 30000});
    b.push_back({0, -30000});
    sort(b.begin(), b.end(), por);
    Stworz(b.size(), b);
    int l = 0, p = 0;
    for (int j = 0; j < b.size(); ++j) {
      while (!Ok60(b[j], b[l])) Dod(l, b.size());
      while (Ok180(b[j], b[p])) Dod(p, b.size());
      --p;
      if (p == -1) p = b.size() - 1;
      if (!Ok(b[j])) continue;
      if (l <= p) {
        long long w = Pyt(l, p);
        if (w != -1) odp = max(odp, min(d(b[j]), w));
      } else {
        long long w = max(Pyt(l, b.size() - 1), Pyt(0, p));
        if (w != -1) odp = max(odp, min(d(b[j]), w));
      }
    }
  }
  cout << fixed << setprecision(7);
  cout << sqrt(odp) / 2.0;
  return 0;
}