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-10;
const int maxs = 110;
struct Point {
  long long x, y;
  Point() {}
  Point(long long a, long long b) : x(a), y(b) {}
};
long long squareDistance(const Point& p1, const Point& p2) {
  return (p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y);
}
double distance(const Point& p, double x, double y) {
  return sqrt((p.x - x) * (p.x - x) + (p.y - y) * (p.y - y));
}
bool colinear(const Point& p1, const Point& p2, const Point& p3) {
  return ((p2.x - p1.x) * (p3.y - p2.y) - (p3.x - p2.x) * (p2.y - p1.y)) == 0;
}
bool acute(const Point& p1, const Point& p2, const Point& p3) {
  if (squareDistance(p1, p2) + squareDistance(p2, p3) <= squareDistance(p1, p3))
    return false;
  if (squareDistance(p1, p2) + squareDistance(p1, p3) <= squareDistance(p2, p3))
    return false;
  if (squareDistance(p1, p3) + squareDistance(p2, p3) <= squareDistance(p1, p2))
    return false;
  return true;
}
bool triangleRectangle(const Point& p1, const Point& p2, const Point& p3) {
  return (squareDistance(p1, p3) + squareDistance(p2, p3) ==
          squareDistance(p1, p2));
}
double circle(const Point& p1, const Point& p2, const Point& p3, double& x,
              double& y) {
  double xa = (p1.x - p3.x);
  double xb = (p2.x - p3.x);
  double ya = (p1.y - p3.y);
  double yb = (p2.y - p3.y);
  double xc = 0.5 * (xa * (p1.x + p3.x) + ya * (p1.y + p3.y));
  double yc = 0.5 * (xb * (p2.x + p3.x) + yb * (p2.y + p3.y));
  double q = xa * yb - ya * xb;
  x = (xc * yb - yc * ya) / q;
  y = (xa * yc - xb * xc) / q;
  return sqrt((p1.x - x) * (p1.x - x) + (p1.y - y) * (p1.y - y));
}
int N;
double T;
Point P[maxs];
bool cover(double x, double y, double t) {
  if (t > T + eps) {
    for (int i = 0; i < N; i++) {
      if (distance(P[i], x, y) + eps < t) return false;
    }
    T = t;
    return true;
  }
  return false;
}
bool fillGaps() {
  bool changed = false;
  double x, y;
  T = 0;
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < N; j++) {
      if (i == j) continue;
      int square = 0;
      for (int k = 0; k < N; k++) {
        if (i == k or j == k or colinear(P[i], P[j], P[k])) continue;
        if (acute(P[i], P[j], P[k])) {
          double r = circle(P[i], P[j], P[k], x, y);
          changed |= cover(x, y, r);
        } else if (triangleRectangle(P[i], P[j], P[k]))
          square++;
      }
      if (square == 2) {
        cover(0.5 * (P[i].x + P[j].x), 0.5 * (P[i].y + P[j].y),
              0.5 * sqrt(double(squareDistance(P[i], P[j]))));
        changed = true;
      }
    }
  }
  return changed;
}
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) cin >> P[i].x >> P[i].y;
  if (fillGaps())
    printf("%.6lf\n", T);
  else
    cout << -1 << endl;
  return 0;
}