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;
long long GCD(long long a, long long b) {
  while (b) b ^= a ^= b ^= a %= b;
  return a;
}
long long LCM(long long a, long long b) { return a * (b / GCD(a, b)); }
const double EPS = 10e-7;
const double INF = (1LL << 62);
struct Point {
  double x;
  double y;
};
int K[100];
Point xy[100];
Point circumcircle(int i, int j, int k) {
  Point A = xy[i], B = xy[j], C = xy[k];
  double x = K[i] * (B.y - C.y) + K[j] * (C.y - A.y) + K[k] * (A.y - B.y);
  double y = K[i] * (C.x - B.x) + K[j] * (A.x - C.x) + K[k] * (B.x - A.x);
  double d = 2.0 * (A.x * (B.y - C.y) + B.x * (C.y - A.y) + C.x * (A.y - B.y));
  x /= d;
  y /= d;
  Point p;
  p.x = x;
  p.y = y;
  return p;
}
double sign(Point &p1, Point &p2, Point &p3) {
  return (p1.x - p3.x) * (p2.y - p3.y) - (p2.x - p3.x) * (p1.y - p3.y);
}
bool inside(Point &v1, Point &v2, Point &v3, Point &p) {
  double s1, s2, s3;
  s1 = sign(p, v1, v2);
  s2 = sign(p, v2, v3);
  s3 = sign(p, v3, v1);
  return (s1 > EPS && s2 > EPS && s3 > EPS) ||
         (s1 < -EPS && s2 < -EPS && s3 < -EPS);
}
double dist(Point A, Point B) {
  double d1 = (A.x - B.x), d2 = (A.y - B.y);
  return d1 * d1 + d2 * d2;
}
Point median(Point A, Point B) {
  Point m;
  m.x = (A.x + B.x) / 2;
  m.y = (A.y + B.y) / 2;
  return m;
}
int main() {
  int N;
  cin >> N;
  for (int i = 0; i < (N); ++i) {
    cin >> xy[i].x >> xy[i].y;
  }
  for (int i = 0; i < (N); ++i) {
    K[i] = xy[i].x * xy[i].x + xy[i].y * xy[i].y;
  }
  double maxDist = -1;
  for (int i = 0; i < (N); ++i) {
    for (int j = 0; j < (N); ++j) {
      if (i == j) continue;
      Point cc;
      double rad = INF;
      for (int k = 0; k < (N); ++k) {
        if (k != i && k != j) {
          Point c = circumcircle(i, j, k);
          double s1 = sign(xy[i], xy[j], xy[k]), s2 = sign(xy[i], xy[j], c);
          if (inside(xy[i], xy[j], xy[k], c) && (s1 > EPS && s2 > EPS)) {
            if (rad > dist(c, xy[i])) {
              rad = min(dist(c, xy[i]), rad);
              cc = c;
            }
          }
        }
      }
      bool ok = true;
      for (int kk = 0; kk < (N); ++kk) {
        if (kk != i && kk != j && rad > dist(cc, xy[kk])) {
          ok = false;
          break;
        }
      }
      if (ok && rad != INF) {
        maxDist = max(maxDist, rad);
      }
      ok = true;
      int count = 0;
      Point mid = median(xy[i], xy[j]);
      for (int k = 0; k < (N); ++k) {
        if (k != i && k != j) {
          if (dist(xy[i], mid) > dist(xy[k], mid)) {
            ok = false;
            break;
          } else if (abs(dist(xy[i], mid) - dist(xy[k], mid)) < EPS)
            count++;
        }
      }
      if (ok && count >= 2) {
        maxDist = max(maxDist, dist(mid, xy[i]));
      }
    }
  }
  if (maxDist != -1)
    cout << sqrt(maxDist) << endl;
  else
    cout << -1 << endl;
  return 0;
}