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 JAVA):

Solution:
import java.util.*;

public class SummerEarnings{
    static class Center{
        int x,y;
        Center(int x, int y){
            this.x=x;
            this.y=y;
        }
    }
    static Center[] centers;

    static int[] hull;
    static int[][] distance, aa;
    static int n;
    static int sign(int i, int j) {
        int x = centers[j].x - centers[i].x, y = centers[j].y - centers[i].y;
        return y < 0 || y == 0 && x < 0 ? -1 : 1;
    }
    static int cross(int i, int j, int k) {
        int x1=centers[j].x - centers[i].x;
        int y1=centers[j].y - centers[i].y;
        int x2=centers[k].x - centers[i].x;
        int y2=centers[k].y - centers[i].y;
        return x1 * y2 - x2 * y1;
    }
    static boolean check(int i, int d) {
        int cnt = 0;
        for (int h = 0; h < n - i - 1; h++) {
            int j = aa[i][h];
            if (distance[i][j] >= d)
                hull[cnt++] = j;
        }
        for (int h = 0, h_ = 0; h < cnt; h++) {
            if (h_ < h)
                h_ = h;
            int j = hull[h], k;
            while (h_ + 1 < h + cnt && cross(i, j, k = hull[(h_ + 1) % cnt]) <= 0) {
                h_++;
                if (distance[j][k] >= d)
                    return true;
            }
        }
        return false;
    }
    static boolean check(int d) {
        for (int i = 0; i < n; i++)
            if (check(i, d))
                return true;
        return false;
    }

    public static void main(String[] args) {
        Scanner cin= new Scanner(System.in);
        n = cin.nextInt();
        centers= new Center[n];
        for (int i = 0; i < n; i++) {
            centers[i]= new Center(cin.nextInt(),cin.nextInt());
        }
        distance = new int[n][n];
        hull = new int[n - 1];
        for (int i = 0; i < n; i++)
            for (int j = i + 1; j < n; j++) {
                int x = centers[i].x - centers[j].x, y = centers[i].y - centers[j].y;
                distance[i][j] = distance[j][i] = x * x + y * y;
            }
        aa = new int[n][];
        Integer[] jj = new Integer[n - 1];
        for (int i = 0; i < n; i++) {
            int m = n - i - 1;
            aa[i] = new int[m];
            for (int h = 0; h < m; h++)
                jj[h] = i + 1 + h;
            int i1 = i;
            Arrays.sort(jj, 0, m, (j1, j2) -> {
                int s1 = sign(i1, j1), s2 = sign(i1, j2);
                return s1 != s2 ? s1 - s2 : cross(i1, j1, j2);
            });
            for (int h = 0; h < m; h++)
                aa[i][h] = jj[h];
        }
        int lower = 0, upper = 800000000;
        while (upper - lower > 1) {
            int d = (lower + upper) / 2;
            if (check(d))
                lower = d;
            else
                upper = d;
        }
        System.out.println(Math.sqrt(lower) / 2);
    }
}