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-12;
inline double eq(const double &a, const double &b) { return abs(a - b) <= EPS; }
struct Point {
  double x, y;
};
Point operator+(const Point &a, const Point &b) {
  return {a.x + b.x, a.y + b.y};
}
Point operator-(const Point &a, const Point &b) {
  return {a.x - b.x, a.y - b.y};
}
bool operator<(const Point &a, const Point &b) {
  return a.x < b.x || (a.x == b.x && a.y < b.y);
}
double cross(const Point &a, const Point &b) { return a.x * b.y - a.y * b.x; }
double dot(const Point &a, const Point &b) { return a.x * b.x + a.y * b.y; }
inline double dis(const Point &a) { return sqrt(dot(a, a)); }
double angel(const Point &a, const Point &b) {
  return acos(dot(a, b) / dis(a) / dis(b));
}
inline double dis(const Point &a, const Point &b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
inline Point midpoint(const Point &a, const Point &b) {
  return {(a.x + b.x) / 2, (a.y + b.y) / 2};
}
ostream &operator<<(ostream &os, const Point &p) {
  os << p.x << ' ' << p.y;
  return os;
}
set<Point> st;
const int N = 105;
Point p[N];
int n;
double check(Point pp) {
  double ans = DBL_MAX;
  for (int i = 1; i <= n; i++) ans = min(ans, dis(p[i], pp));
  return ans;
}
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++)
    scanf("%lf%lf", &p[i].x, &p[i].y), st.insert(p[i]);
  double ans = -1;
  for (int i = 1; i <= n; i++)
    for (int j = i + 1; j <= n; j++)
      for (int k = j + 1; k <= n; k++) {
        double a = dis(p[i], p[j]), b = dis(p[j], p[k]), c = dis(p[k], p[i]);
        if (a + b + c <= 2 * max({a, b, c}) + EPS) continue;
        bool rect = 1;
        Point mid;
        if (eq(c * c, a * a + b * b) && st.count(p[i] + p[k] - p[j]))
          mid = midpoint(p[i], p[k]);
        else if (eq(a * a, c * c + b * b) && st.count(p[i] + p[j] - p[k]))
          mid = midpoint(p[i], p[j]);
        else if (eq(b * b, a * a + c * c) && st.count(p[j] + p[k] - p[i]))
          mid = midpoint(p[j], p[k]);
        else
          rect = 0;
        if (rect && check(mid) + EPS >= dis(mid, p[i])) {
          ans = max(ans, dis(mid, p[i]));
          continue;
        }
        if (a * a + b * b + c * c <= 2 * max({a * a, b * b, c * c}) + EPS)
          continue;
        double A1 = 2 * (p[j].x - p[i].x), B1 = 2 * (p[j].y - p[i].y),
               C1 = dot(p[j], p[j]) - dot(p[i], p[i]);
        double A2 = 2 * (p[k].x - p[j].x), B2 = 2 * (p[k].y - p[j].y),
               C2 = dot(p[k], p[k]) - dot(p[j], p[j]);
        mid = {(B1 * C2 - B2 * C1) / (A2 * B1 - A1 * B2),
               (A1 * C2 - A2 * C1) / (A1 * B2 - A2 * B1)};
        if (check(mid) + EPS >= dis(p[i], mid)) ans = max(ans, dis(p[i], mid));
      }
  if (ans < 0)
    puts("-1");
  else
    printf("%.8lf", ans);
  return 0;
}