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;
namespace IO {
const int sz = 1 << 15;
char inbuf[sz], outbuf[sz];
char *pinbuf = inbuf + sz;
char *poutbuf = outbuf;
inline char _getchar() {
  if (pinbuf == inbuf + sz) fread(inbuf, 1, sz, stdin), pinbuf = inbuf;
  return *(pinbuf++);
}
inline void _putchar(char x) {
  if (poutbuf == outbuf + sz) fwrite(outbuf, 1, sz, stdout), poutbuf = outbuf;
  *(poutbuf++) = x;
}
inline void flush() {
  if (poutbuf != outbuf)
    fwrite(outbuf, 1, poutbuf - outbuf, stdout), poutbuf = outbuf;
}
}  // namespace IO
inline int read() {
  int x = 0, p = 1;
  char c = IO::_getchar();
  while (c < '0' || c > '9') {
    if (c == '-') p = -1;
    c = IO::_getchar();
  }
  while (c >= '0' && c <= '9') x = x * 10 + c - 48, c = IO::_getchar();
  return x * p;
}
const int Maxn = 105;
struct P {
  double x, y;
  P() { x = y = 0.0; }
  P(double _x, double _y) { x = _x, y = _y; }
  P operator+(P p) { return P(x + p.x, y + p.y); }
  P operator-(P p) { return P(x - p.x, y - p.y); }
  P operator*(double k) { return P(x * k, y * k); }
  double dot(P p) { return x * p.x + y * p.y; }
  double det(P p) { return x * p.y - y * p.x; }
  double dist() { return sqrt(x * x + y * y); }
  double d2() { return (x * x + y * y); }
  bool operator<(const P &p) const {
    if (x != p.x) return x < p.x;
    return y < p.y;
  }
  bool operator!=(const P &p) const { return x != p.x || y != p.y; }
} A[Maxn];
int n;
P intersection(P p1, P p2, P q1, P q2) {
  return p1 + (p2 - p1) * ((q2 - q1).det(q1 - p1) / (q2 - q1).det(p2 - p1));
}
P Get(P a, P b, P c) {
  P Mab = (a + b) * 0.5, Mac = (a + c) * 0.5;
  P ab = b - a, ac = c - a;
  P lab, lac;
  lab.x = -ab.y;
  lab.y = ab.x;
  lac.x = -ac.y;
  lac.y = ac.x;
  return intersection(Mab, Mab + lab, Mac, Mac + lac);
}
const double eps = 1e-8;
vector<P> convex_hull(P X[], int l) {
  vector<P> ret;
  sort(X + 1, X + 1 + l);
  ret.push_back(X[1]);
  for (int i = 2; i <= l; i++) {
    while (ret.size() >= 2 &&
           (ret[ret.size() - 2] - X[i]).det(ret[ret.size() - 1] - X[i]) >= 0) {
      ret.pop_back();
    }
    ret.push_back(X[i]);
  }
  int rs = ret.size() + 1;
  for (int i = l - 1; i >= 1; i--) {
    while (ret.size() >= rs &&
           (ret[ret.size() - 2] - X[i]).det(ret[ret.size() - 1] - X[i]) >= 0) {
      ret.pop_back();
    }
    ret.push_back(X[i]);
  }
  ret.pop_back();
  return ret;
}
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%lf %lf", &A[i].x, &A[i].y);
  }
  if (n < 3) {
    printf("-1\n");
    return 0;
  }
  vector<P> C = convex_hull(A, n);
  double S = 0;
  for (int i = 0; i < C.size(); i++) {
    S += C[(i + 1) % (C.size())].det(C[i]);
  }
  if (S < 0) S = -S;
  double ans = 0.0;
  for (int i = 1; i <= n; i++) {
    for (int j = i + 1; j <= n; j++) {
      for (int k = j + 1; k <= n; k++) {
        if ((A[j] - A[i]).det(A[k] - A[i]) == 0.0) continue;
        P Tmp = Get(A[i], A[j], A[k]);
        double tmp = 1e18;
        double tots = 0.0;
        bool flag = true;
        for (int l = 0; l < C.size(); l++) {
          double now = (C[l] - Tmp).det(C[(l + 1) % C.size()] - Tmp);
          if (fabs(now) < eps) {
            flag = false;
            break;
          }
          tots += fabs(now);
        }
        vector<double> V;
        V.push_back((A[i] - A[j]).d2());
        V.push_back((A[i] - A[k]).d2());
        V.push_back((A[k] - A[j]).d2());
        sort(V.begin(), V.end());
        if (V[0] + V[1] < V[2]) continue;
        if (!flag || fabs(tots - S) > eps) continue;
        double SS = (A[k] - A[i]).det(A[j] - A[i]);
        SS = fabs(SS);
        for (int l = 1; l <= n; l++) {
          tmp = min(tmp, (A[l] - Tmp).dist());
          if (A[l] != A[i] && A[l] != A[j] && A[l] != A[k]) {
            double TT = fabs((A[l] - A[i]).det(A[j] - A[i])) +
                        fabs((A[l] - A[i]).det(A[k] - A[i])) +
                        fabs((A[l] - A[j]).det(A[k] - A[j]));
            if (fabs(TT - SS) < eps) {
              flag = false;
              break;
            }
          }
        }
        if (!flag) continue;
        double T = max(max((A[i] - A[j]).dist(), (A[k] - A[j]).dist()),
                       (A[i] - A[k]).dist());
        T /= 2;
        if (tmp < T - eps) continue;
        ans = max(ans, tmp);
      }
    }
  }
  if (ans == 0.0) {
    printf("-1\n");
    return 0;
  }
  printf("%.10lf\n", ans);
  return ~~(0 ^ 0 ^ 0);
}