Problem: Luyi has n circles on the plane. The i-th circle is centered at (xi, yi). At the time zero circles start to grow simultaneously. In other words, the radius of each circle at time t (t > 0) is equal to t. The circles are drawn as black discs on an infinite white plane. So at each moment the plane consists of several black and white regions. Note that the circles may overlap while growing.

<image>

We define a hole as a closed, connected white region. For instance, the figure contains two holes shown by red border. During growing some holes may be created and it is easy to see that each created hole will disappear eventually. Luyi asks you to find moment of time such that the last hole disappears. In other words, you should find the first moment such that no hole can be seen after that.

Input

The first line of the input contains integer n (1 ≤ n ≤ 100). Each of the next n lines contains two integers xi and yi ( - 104 ≤ xi, yi ≤ 104), indicating the location of i-th circle.

It's guaranteed that no two circles are centered at the same point.

Output

Print the moment where the last hole disappears. If there exists no moment in which we can find holes print -1.

The answer will be considered correct if the absolute or relative error does not exceed 10 - 4.

Examples

Input

3
0 0
1 1
2 2


Output

-1


Input

4
0 0
0 2
2 2
2 0


Output

1.414214


Input

4
0 1
0 -1
-2 0
4 0


Output

2.125000

Solution (in JAVA):

Solution:
import java.io.*;
import java.math.BigInteger;
import java.util.*;
public class Solution {

	BufferedReader in;
	PrintWriter out;
	StringTokenizer st;
	
	String nextToken() throws Exception {
		while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(in.readLine());
		return st.nextToken();
	}
	
	int nextInt() throws Exception {
		return Integer.parseInt(nextToken());
	}
	
	class Point {
		double x, y;
		Point(double q, double w) {
			x = q; y = w;
		}
		Point sub(Point b) {
			return new Point(x - b.x, y - b.y);
		}
		double dist() {
			return Math.sqrt(x * x + y * y);
		}
		Point mul(double q) {
			return new Point(x * q, y * q);
		}
		double angle() {
			return Math.atan2(y, x);
		}
	}
	
	final double eps = 1e-8;
	
	double vp(Point a, Point b) {
		return a.x * b.y - a.y * b.x;
	}
	
	boolean oneLine(Point a, Point b, Point c) {
		return (Math.abs(vp(a.sub(b), a.sub(c))) < eps); 
	}
	
	double dist(Point a, Point b) {
		return a.sub(b).dist();
	}
	
	Point mid(Point a, Point b, Point c) {
		Point bb = b.sub(a).mul(0.5);
		Point cc = c.sub(a).mul(0.5);
		double a1 = bb.x, b1 = bb.y, c1 = (a1 * (a.x + bb.x) + b1 * (a.y + bb.y));
		double a2 = cc.x, b2 = cc.y, c2 = (a2 * (a.x + cc.x) + b2 * (a.y + cc.y));
		double d = a1 * b2 - a2 * b1;
		return new Point(c1 * b2 - c2 * b1, a1 * c2 - a2 * c1).mul(1.0 / d);
	}
	
	void solve() throws Exception {
		int n = nextInt();
		Point[] p = new Point[n];
		for (int i = 0; i < n; i++) {
			p[i] = new Point(nextInt(), nextInt());
		}
		double ans = -1;
		for (int i = 0; i < n; i++) {
			for (int j = i + 1; j < n; j++) {
				for (int k = j + 1; k < n; k++) {
					if (!oneLine(p[i], p[j], p[k])) {
						Point m = mid(p[i], p[j], p[k]);
						ArrayList<Point> ap = new ArrayList<Point>();
						double t = dist(m, p[i]);
						for (int q = 0; q < n; q++) if (q != i && q != j && q != k) {
							if (dist(m, p[q]) < t) { t = -2; break; }
							if (dist(m, p[q]) < t + eps) {
								ap.add(p[q]);
							}
						}
						if (t >= 0) {
							ap.add(p[i]); ap.add(p[j]); ap.add(p[k]);
							double[] ang = new double[ap.size()];
							int q = 0;
							for (Point z : ap) {
								ang[q++] = z.sub(m).angle();
							}
							Arrays.sort(ang);
							boolean f = true;
							for (int r = 1; r < ang.length; r++) {
								if (ang[r] - ang[r - 1] >= Math.PI) { f = false; break; }
							}
							if (Math.PI * 2 - ang[ang.length - 1] + ang[0] >= Math.PI) f = false;
							if (f) ans = Math.max(ans, t);
						}
					}
				}
			}
		}
		if (ans < 0) out.println(-1); else out.printf("%.8f", ans);
	}

	void run() {
		try {
			Locale.setDefault(Locale.US);
//			in = new BufferedReader(new FileReader("input.txt"));
//			out = new PrintWriter("output.txt");
			in = new BufferedReader(new InputStreamReader(System.in));
			out = new PrintWriter(System.out);
			solve();
		} catch (Exception e) {
			e.printStackTrace();
			System.exit(1);
		} finally {
			out.close();
		}
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new Solution().run();
	}
}