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;
int Max(int a, int b) { return (((b - a) >> (32 - 1)) & (a ^ b)) ^ b; }
int Min(int a, int b) { return (((b - a) >> (32 - 1)) & (a ^ b)) ^ a; }
long long GCD(long long a, long long b) { return b != 0 ? GCD(b, a % b) : a; }
long long LCM(long long a, long long b) { return a * (b / GCD(a, b)); }
long long Pow(long long n, long long e) {
  if (e == 0) return 1;
  if (e == 1)
    return n;
  else if (e & 1) {
    long long t = Pow(n, e / 2);
    return n * t * t;
  } else {
    long long t = Pow(n, e / 2);
    return t * t;
  }
}
const int MAX = 10000;
const int MAX_LOG = 20;
int x[3005], y[3005], dist[3005][3005];
int val[MAX], rmq[MAX][MAX_LOG];
vector<pair<double, int> > v;
void RMQ_Init(int id, int N) {
  for (int i = 0, max_ = (N); i < max_; ++i) {
    val[i] = dist[id][v[i].second];
    rmq[i][0] = i;
  }
  for (int length = 1; (1 << length) <= N; ++length)
    for (int i = 0; i + (1 << length) - 1 < N; ++i) {
      int start = i + (1 << (length - 1));
      if (val[rmq[i][length - 1]] > val[rmq[start][length - 1]])
        rmq[i][length] = rmq[i][length - 1];
      else
        rmq[i][length] = rmq[start][length - 1];
    }
}
int RMQ_Query(int i, int j) {
  int maxLength = (int)floor(log((double)j - i + 1) / log(2.0));
  int start = j - (1 << maxLength) + 1;
  if (val[rmq[i][maxLength]] > val[rmq[start][maxLength]])
    return rmq[i][maxLength];
  else
    return rmq[start][maxLength];
}
bool Comp(const pair<double, int>& a, const pair<double, int>& b) {
  return a.first < b.first;
}
int main() {
  int N;
  scanf("%d", &N);
  for (int i = 0, max_ = (N); i < max_; ++i) scanf("%d %d", &x[i], &y[i]);
  for (int i = 0, max_ = (N); i < max_; ++i)
    for (int j = (i + 1), max_ = (N); j < max_; ++j)
      dist[i][j] = dist[j][i] =
          (x[i] - x[j]) * (x[i] - x[j]) + (y[i] - y[j]) * (y[i] - y[j]);
  double step = 60.0 * 3.1415926535897932384626433832795 / 180.0;
  v.resize(N - 1);
  int res = 0;
  for (int i = 0, max_ = (N); i < max_; ++i) {
    int c = 0;
    for (int j = 0, max_ = (N); j < max_; ++j)
      if (i != j) {
        int dx = x[j] - x[i];
        int dy = y[j] - y[i];
        double angle = atan2((double)dy, (double)dx);
        if (angle < 0) angle += 2 * 3.1415926535897932384626433832795;
        v[c++] = make_pair(angle, j);
      }
    sort((v).begin(), (v).end(), Comp);
    RMQ_Init(i, (int)(v).size());
    for (int j = 0, max_ = (N - 1); j < max_; ++j) {
      double angleStart = v[j].first + step;
      if (angleStart + 1e-9 > 2 * 3.1415926535897932384626433832795)
        angleStart -= 2 * 3.1415926535897932384626433832795;
      int start =
          lower_bound((v).begin(), (v).end(), make_pair(angleStart, 0)) -
          v.begin();
      double angleEnd = v[j].first - step;
      if (angleEnd < 0.0) angleEnd += 2 * 3.1415926535897932384626433832795;
      int end = upper_bound((v).begin(), (v).end(), make_pair(angleEnd, 0)) -
                v.begin();
      --end;
      int id = -1;
      if (angleEnd > angleStart) {
        if (end >= start) id = RMQ_Query(start, end);
      } else {
        if (start < (int)(v).size()) id = RMQ_Query(start, (int)(v).size() - 1);
        if (end >= 0) {
          int id2 = RMQ_Query(0, end);
          if (id == -1 || dist[i][v[id].second] < dist[i][v[id2].second])
            id = id2;
        }
      }
      if (id == -1) continue;
      int tmp = min(dist[i][v[j].second], dist[i][v[id].second]);
      if (res < tmp) res = tmp;
    }
  }
  printf("%.8lf\n", 0.5 * sqrt((double)res));
  return 0;
}