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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;



public class SummerEarnings {
	private static class Point{
		int x; int y;
		Point(int x, int y){
			this.x=x;
			this.y=y;
		}
	}
	static int n;
	static Point[] pp;
	static int[][] dist;
	static int[][] cc;
	static int[] qq;
	private static int crossProduct(int  i, int j, int k) {
		Point a = pp[i];
		Point b = pp[j];
		Point c = pp[k];
		return (a.x-b.x)*(b.y-c.y) - (b.x-c.x)*(a.y-b.y);
	}
	private static boolean check(int d) {
        for (int i=0; i<n; i++)
            if (check(i, d))
                return true;
        return false;
    }
    
	private static boolean check(int i, int d) {
		int count = 0;
		for (int k=0; k <n-i-1; k++) {
			int j = cc[i][k];
			if (dist[i][j] >= d)
				qq[count++] = j;
		}
		for (int m=0, n=0; m<count; m++) {
			if (m>n)
				n=m;
			int j=qq[m];
			int k;
			while(n+1<m+count && crossProduct(i,j,k=qq[(n+1)%count])<=0) {
				n++;
				if(dist[j][k]>=d)
					return true;
			}
		}
		return false;
	}
	private static int sign(int i, int j) {
        int x = pp[j].x - pp[i].x;
        int y = pp[j].y - pp[i].y;
        return y < 0 || y == 0 && x < 0 ? -1 : 1;
    }
	
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		pp = new Point[n];
		dist = new int[n][n];
		
		StringTokenizer st;
		Point p;
		for(int i=0; i<n;i++) {
			st = new StringTokenizer(br.readLine());
			p= new Point(Integer.parseInt(st.nextToken()),Integer.parseInt(st.nextToken()));
			pp[i]=p;
		}
		for(int i=0; i<n;i++) {
			for(int j=0; j<n; j++) {
				int x = pp[i].x - pp[j].x;
				int y = pp[i].y - pp[j].y;
				dist[i][j]=dist[j][i]=x*x+y*y;
			}
		}
		cc = new int[n][];
		qq = new int[n - 1];
        Integer[] jj = new Integer[n - 1];
        for (int i = 0; i < n; i++) {
            int m = n-i-1;
            cc[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 sign1 = sign(i1, j1);
                int sign2 = sign(i1, j2);
                return sign1 != sign2 ? sign1 - sign2 : crossProduct(i1, j1, j2);
            });
            for (int h = 0; h < m; h++)
                cc[i][h] = jj[h];
        }
		int lower =0; int upper = Integer.MAX_VALUE;
		while (upper-lower>1) {
			int diam = (lower+upper)/2;
			if(check(diam))
				lower=diam;
			else
				upper=diam;
		}
		System.out.println(Math.sqrt(lower)/2);
	}
}