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;
int Sig(double x) {
  if (x < -1e-6) return -1;
  return x > 1e-6;
}
struct Point {
  double x, y;
  Point() {}
  Point(double x0, double y0) : x(x0), y(y0) {}
  void in() { scanf("%lf%lf", &x, &y); }
  void out() { printf("%.3f %.3f\n", x, y); }
  Point operator*(double t) { return Point(t * x, t * y); }
  double len() { return sqrt(x * x + y * y); }
  double operator*(Point pt) { return x * pt.y - y * pt.x; }
  double operator^(Point pt) { return pt.x * x + pt.y * y; }
  Point operator-(Point pt) { return Point(x - pt.x, y - pt.y); }
  Point operator+(Point pt) { return Point(x + pt.x, y + pt.y); }
  Point turnlen(double l) {
    double r = l / len();
    return Point(x * r, y * r);
  }
  bool operator==(Point pt) {
    if (fabs(x - pt.x) < 1e-6 && fabs(y - pt.y) < 1e-6)
      return true;
    else
      return false;
  }
} p[210];
double dis(Point a, Point b) { return (a - b).len(); }
Point CircleCenter(Point p0, Point p1, Point p2) {
  double a1 = p1.x - p0.x, b1 = p1.y - p0.y, c1 = (a1 * a1 + b1 * b1) / 2;
  double a2 = p2.x - p0.x, b2 = p2.y - p0.y, c2 = (a2 * a2 + b2 * b2) / 2;
  double d = a1 * b2 - a2 * b1;
  Point cp;
  cp.x = p0.x + (c1 * b2 - c2 * b1) / d;
  cp.y = p0.y + (a1 * c2 - a2 * c1) / d;
  return cp;
}
int n;
double d[210][210];
bool three(Point a, Point b, Point c) {
  if (Sig((b - a) ^ (c - a)) > 0 && Sig((a - b) ^ (c - b)) > 0 &&
      Sig((a - c) ^ (b - c)) > 0)
    return true;
  else
    return false;
}
bool four(int i, int j, int k, int l) {
  return Sig((p[i] - p[j]) ^ (p[k] - p[l])) == 0 &&
         Sig(d[i][j] - d[k][l]) == 0 &&
         Sig(dis(((p[i] + p[j]) * 0.5), ((p[k] + p[l]) * 0.5))) == 0;
}
bool check(Point o, double f) {
  for (int i = 0; i < n; i++) {
    if (Sig(dis(o, p[i]) - f) < 0) return false;
  }
  return true;
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) p[i].in();
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) d[i][j] = dis(p[i], p[j]);
  double ans = -1e20;
  for (int i = 0; i < n; i++)
    for (int j = i + 1; j < n; j++)
      for (int k = j + 1; k < n; k++) {
        if (three(p[i], p[j], p[k])) {
          Point o = CircleCenter(p[i], p[j], p[k]);
          double f = dis(o, p[i]);
          if (check(o, f)) ans = max(ans, f);
        }
      }
  for (int i = 0; i < n; i++)
    for (int j = i + 1; j < n; j++) {
      bool doing = true;
      for (int k = 0; k < n && doing; k++)
        for (int l = k + 1; l < n && doing; l++) {
          if (four(i, j, k, l)) {
            Point o = (p[i] + p[j]) * 0.5;
            double f = dis(o, p[i]);
            if (check(o, f)) ans = max(ans, f);
            doing = false;
          }
        }
    }
  if (ans < 0)
    printf("-1\n");
  else
    printf("%.10f\n", ans);
  return 0;
}