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 double EPS = 1e-9;
int n;
struct point {
  double x, y;
  point() {}
  point(double tx, double ty) {
    x = tx;
    y = ty;
  }
  point operator-(const point &a) const {
    point ret;
    ret.x = x - a.x;
    ret.y = y - a.y;
    return ret;
  }
  bool operator<(const point a) const {
    if (x == a.x) {
      return y < a.y;
    } else
      return x < a.x;
  }
} points[108];
map<point, bool> mp;
double dot_mul(point a, point b) { return (a.x * b.x) + (a.y * b.y); }
point get_center(point a, point b, point c) {
  double a1 = b.x - a.x, b1 = b.y - a.y, c1 = (a1 * a1 + b1 * b1) / 2;
  double a2 = c.x - a.x, b2 = c.y - a.y, c2 = (a2 * a2 + b2 * b2) / 2;
  double d = a1 * b2 - a2 * b1;
  return point(a.x + (c1 * b2 - c2 * b1) / d, a.y + (a1 * c2 - a2 * c1) / d);
}
bool check(point a, point b, point c) {
  double t1 = dot_mul(b - a, c - a);
  double t2 = dot_mul(a - b, c - b);
  double t3 = dot_mul(a - c, b - c);
  if (t1 > 0 && t2 > 0 && t3 > 0) return true;
  if (t1 == 0) {
    point center = get_center(a, b, c);
    point tmp;
    tmp.x = 2 * center.x - a.x;
    tmp.y = 2 * center.y - a.y;
    if (mp[tmp]) return true;
  } else if (t2 == 0) {
    point center = get_center(a, b, c);
    point tmp;
    tmp.x = 2 * center.x - b.x;
    tmp.y = 2 * center.y - b.y;
    if (mp[tmp]) return true;
  } else if (t3 == 0) {
    point center = get_center(a, b, c);
    point tmp;
    tmp.x = 2 * center.x - c.x;
    tmp.y = 2 * center.y - c.y;
    if (mp[tmp]) return true;
  }
  return false;
}
double get_dis(point a, point b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
double get_radius(point a, point b, point c) {
  point center = get_center(a, b, c);
  double tmp = get_dis(center, a);
  for (int i = 1; i <= n; i++) {
    if (get_dis(center, points[i]) + EPS < tmp) return -1;
  }
  return tmp;
}
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%lf %lf", &points[i].x, &points[i].y);
    mp[points[i]] = 1;
  }
  double mmax = -1;
  for (int i = 1; i <= n; i++) {
    for (int j = i + 1; j <= n; j++) {
      for (int k = j + 1; k <= n; k++) {
        if (!check(points[i], points[j], points[k])) continue;
        mmax = max(mmax, get_radius(points[i], points[j], points[k]));
      }
    }
  }
  printf("%.5f\n", mmax);
  return 0;
}