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;
struct Point {
  double x, y;
  Point() {}
  Point(double _x, double _y) {
    x = _x;
    y = _y;
  }
  Point operator+(const Point &b) const { return Point(x + b.x, y + b.y); }
  Point operator-(const Point &b) const { return Point(x - b.x, y - b.y); }
  Point operator*(double b) const { return Point(x * b, y * b); }
  Point operator/(double b) const {
    if (b == 0) return Point(0, 0);
    return Point(x / b, y / b);
  }
  bool operator<(const Point &b) const {
    if (x == b.x) return y < b.y;
    return x < b.y;
  }
  double len2() { return x * x + y * y; }
  double len() { return sqrt(len2()); }
  void read() { cin >> x >> y; }
  void print() { cout << fixed << setprecision(9) << x << " " << y << endl; }
};
double dot(Point a, Point b) { return a.x * b.x + a.y * b.y; }
double det(Point a, Point b) { return a.x * b.y - a.y * b.x; }
const double eps = 1e-8;
int dcmp(double x) {
  if (x > eps) return 1;
  if (x < -eps) return -1;
  return 0;
}
bool intersection(Point a, Point b, Point c, Point d, Point &e) {
  if (dcmp(det(b - a, d - c)) == 0) return false;
  double s1 = det(d - a, c - a), s2 = det(c - b, d - b);
  e = b - a;
  e = e * (s1 / (s1 + s2));
  e = e + a;
  return true;
}
const int maxn = 1011;
Point p[maxn];
Point get(Point a, Point b, Point c) {
  Point d = (b + c) / 2, e = (a + c) / 2;
  Point dd, ee;
  dd = d - b;
  ee = e - c;
  dd = Point(-dd.y, dd.x);
  ee = Point(-ee.y, ee.x);
  Point o;
  bool ok = intersection(d, d + dd, e, e + ee, o);
  return o;
}
int m;
int n;
void init() {
  cin >> n;
  for (int i = 1; i <= n; i++) p[i].read();
}
bool ruijiao(Point a, Point b, Point c) {
  return dcmp(dot(b - a, c - a)) > 0 && dcmp(dot(a - b, c - b)) > 0 &&
         dcmp(dot(a - c, b - c)) > 0;
}
bool online(Point a, Point b, Point c) { return dot(b - a, c - a) <= 0; }
void work() {
  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++) {
        if (!ruijiao(p[i], p[j], p[k])) continue;
        Point tmp;
        tmp = get(p[i], p[j], p[k]);
        double T = (tmp - p[i]).len();
        bool ok = true;
        for (int l = 1; l <= n; l++)
          if (l != i && l != j && l != k) {
            if (dcmp((p[l] - tmp).len() - T) < 0) {
              ok = false;
              break;
            }
          }
        if (!ok) continue;
        ans = max(ans, T);
      }
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++)
      for (int k = 1; j <= n; j++)
        for (int l = 1; l <= n; l++)
          if (i != j && i != k && i != l && j != k && j != l && k != l) {
            if (dcmp(dot(p[l] - p[i], p[j] - p[i])) == 0 &&
                dcmp(dot(p[k] - p[j], p[i] - p[j])) == 0 &&
                dcmp(dot(p[l] - p[k], p[j] - p[k])) == 0) {
              Point tmp;
              intersection(p[i], p[k], p[j], p[l], tmp);
              bool ok = true;
              double T = (p[i] - tmp).len();
              for (int q = 1; q <= n; q++)
                if (q != i && q != j && q != k && q != l) {
                  if (dcmp((p[q] - tmp).len() - T) < 0) {
                    ok = false;
                    break;
                  }
                }
              if (ok) ans = max(ans, T);
            }
          }
  if (ans < 0)
    cout << -1 << endl;
  else
    cout << fixed << setprecision(8) << ans << endl;
}
int main() {
  init();
  work();
  return 0;
}