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

Solution:
#include <bits/stdc++.h>
using namespace std;
const int md = 1000000007;
const int maxn = 101010;
const double inf = 2020202020202020202LL;
struct pt {
  double x;
  double y;
};
int n;
double ans = -1;
vector<pt> circle;
void read() {
  pt p;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> p.x >> p.y;
    circle.push_back(p);
  }
}
double dst(pt a, pt b) {
  return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
}
double vm(pt a, pt b, pt p) {
  double x1 = p.x - a.x;
  double y1 = p.y - a.y;
  double x2 = p.x - b.x;
  double y2 = p.y - b.y;
  return x1 * y2 - x2 * y1;
}
double vs(pt a, pt b, pt p) {
  double x1 = p.x - a.x;
  double y1 = p.y - a.y;
  double x2 = p.x - b.x;
  double y2 = p.y - b.y;
  return x1 * x2 + y1 * y2;
}
int nice(pt a, pt b, pt c, pt d) {
  double a1 = (c.y - b.y);
  double b1 = b.x - c.x;
  double c1 = b.y * c.x - b.x * c.y;
  double p = a1 * a.x + b1 * a.y + c1;
  double q = a1 * d.x + b1 * d.y + c1;
  if (p == 0) return 0;
  if (q == 0) return 0;
  if (p < 0)
    p = -1;
  else
    p = 1;
  if (q < 0)
    q = -1;
  else
    q = 1;
  if (p != q) return 1;
  return 0;
}
int isout(pt a, pt b, pt c, pt p) {
  double sa = vm(a, b, p);
  double sb = vm(b, c, p);
  double sc = vm(c, a, p);
  if (vm(a, b, p) == 0) {
    for (int i = 0; i < n; i++)
      if (dst(circle[i], p) == dst(p, a))
        if (nice(c, a, b, circle[i])) return 0;
    return 1;
  }
  if (vm(b, c, p) == 0) {
    for (int i = 0; i < n; i++)
      if (dst(circle[i], p) == dst(p, a))
        if (nice(a, b, c, circle[i])) return 0;
    return 1;
  }
  if (vm(c, a, p) == 0) {
    for (int i = 0; i < n; i++)
      if (dst(circle[i], p) == dst(p, a))
        if (nice(b, a, c, circle[i])) return 0;
    return 1;
  }
  if (abs(sa + sb + sc) == (abs(sa) + abs(sb) + abs(sc))) return 0;
  return 1;
}
pt intr(double a1, double b1, double c1, double a2, double b2, double c2) {
  pt u;
  double e = a1 * b2 - a2 * b1;
  if (e == 0) {
    u.x = md;
    u.y = md;
  } else {
    u.x = (a1 * c2 - a2 * c1) / e;
    u.x = -u.x;
    u.y = (b1 * c2 - b2 * c1) / e;
    swap(u.x, u.y);
  }
  return u;
}
pt cnt(pt a, pt b, pt c) {
  double a1 = b.x - a.x;
  double a2 = c.x - a.x;
  double b1 = b.y - a.y;
  double b2 = c.y - a.y;
  pt o;
  o.x = 0;
  o.y = 0;
  double c1 = dst(o, a) / 2 - dst(o, b) / 2;
  double c2 = dst(o, a) / 2 - dst(o, c) / 2;
  return intr(a1, b1, c1, a2, b2, c2);
}
double sgn(double d) {
  if (d < 0) return -1;
  return 1;
}
double doit(int a, int b, int c) {
  int t = 1;
  pt ce = cnt(circle[a], circle[b], circle[c]);
  if (vm(circle[a], circle[b], circle[c]) == 0) t = 0;
  double d = dst(circle[a], ce);
  int g = isout(circle[a], circle[b], circle[c], ce);
  if (g) t = 0;
  for (int i = 0; i < n; i++)
    if ((dst(ce, circle[i]) < d)) t = 0;
  double e = sqrt(d);
  if (t) return d;
  return -1;
}
void brute() {
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++)
      for (int u = 0; u < n; u++)
        if ((i != j) && (i != u) && (j != u)) ans = max(doit(i, j, u), ans);
}
int main() {
  read();
  brute();
  cout.precision(7);
  if (ans > 0) ans = sqrt(ans);
  cout << fixed << ans;
  return 0;
}