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-8;
inline int sgn(double a) { return (a > eps) - (a < -eps); }
struct point {
  double x, y;
  point(double x = 0, double y = 0) : x(x), y(y) {}
  point operator-(point a) { return point(x - a.x, y - a.y); }
  point operator+(point a) { return point(x + a.x, y + a.y); }
  point operator*(double a) { return point(x * a, y * a); }
  point operator/(double a) { return point(x / a, y / a); }
  point operator&(point a) {
    return point(x * a.x - y * a.y, x * a.y + y * a.x);
  }
  point rotate(double al) { return *this & point(cos(al), sin(al)); }
  double operator^(point a) { return x * a.y - y * a.x; }
  double operator*(point a) { return x * a.x + y * a.y; }
  point norm() {
    double s = nor();
    if (s < eps) return *this;
    return point(x / s, y / s);
  }
  point conj() { return point(-y, x); }
  double nor() { return sqrt(*this * *this); }
  double al() { return atan2(y, x); }
  void input() { scanf("%lf %lf", &x, &y); }
  void print() { printf("%lf %lf\n", x, y); }
};
bool is_on(point a, point b, point c) {
  if (sgn(a - b ^ b - c)) return 0;
  return sgn((a - c) * (b - c)) <= 0;
}
void capture_centre(point &a, point &b, point &c, point &CO) {
  point bb = (a + b) / 2, cc = (a + c) / 2;
  point bbb = (b - a).conj(), ccc = (c - a).conj();
  double s = (bbb ^ ccc), t = (cc - bb) ^ ccc;
  CO = bb + bbb * (t / s);
}
int main() {
  const int NN = 111;
  static point p[NN], q, qq;
  int n, i, j, k, ii, jj, kk, g, h;
  double r;
  cin >> n;
  double ans = -1e100;
  for (i = 0; i < n; i++) p[i].input();
  for (i = 0; i < n; i++) {
    for (j = i + 1; j < n; j++) {
      for (k = j + 1; k < n; k++) {
        if (!sgn(p[j] - p[i] ^ p[k] - p[i])) continue;
        ii = sgn((p[j] - p[i]) * (p[k] - p[i]));
        jj = sgn((p[i] - p[j]) * (p[k] - p[j]));
        kk = sgn((p[i] - p[k]) * (p[j] - p[k]));
        if (ii < 0 || jj < 0 || kk < 0) continue;
        if (ii == 1 && jj == 1 && kk == 1) {
          capture_centre(p[i], p[j], p[k], q);
          r = (p[j] - q).nor();
          h = 1;
          for (g = 0; g < n; g++) {
            if (g != i && g != j && g != k && (p[g] - q).nor() < r - eps) {
              h = 0;
              break;
            }
          }
          if (h) ans = max(ans, r);
        } else {
          capture_centre(p[i], p[j], p[k], q);
          if (!ii)
            g = i;
          else if (!jj)
            g = j;
          else
            g = k;
          r = (q - p[g]).nor();
          qq = q - (p[g] - q);
          int h = 0;
          for (int i = 0; i < n; i++) {
            if (!sgn((qq - p[i]).nor())) h = 1;
            if ((q - p[i]).nor() + eps < r) {
              h = 0;
              break;
            }
          }
          if (h) ans = max(ans, (p[g] - q).nor());
        }
      }
    }
  }
  if (ans < -1e50)
    puts("-1");
  else
    printf("%.7lf\n", ans);
  return 0;
}