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;
template <class T>
inline bool Up(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool Down(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
struct Vec {
  int x, y;
  explicit Vec(int x, int y) : x(x), y(y) {}
  explicit Vec() : x(0), y(0) {}
  Vec operator+(const Vec &rhs) const { return Vec(x + rhs.x, y + rhs.y); }
  Vec operator-(const Vec &rhs) const { return Vec(x - rhs.x, y - rhs.y); }
  Vec operator*(const int &k) const { return Vec(x * k, y * k); }
  int operator*(const Vec &rhs) const { return x * rhs.x + y * rhs.y; }
  int operator^(const Vec &rhs) const { return x * rhs.y - y * rhs.x; }
  double getDist() const { return hypot(x, y); }
} P[129];
Vec operator*(const int &a, const Vec &b) { return Vec(a * b.x, a * b.y); }
Vec findCircumcenter(Vec o, Vec a, Vec b) {
  a = a - o;
  b = b - o;
  Vec p(a.x * a.x + a.y * a.y, b.x * b.x + b.y * b.y);
  double d = 2 * (a ^ b);
  return Vec((p ^ Vec(a.y, b.y)) / d, (Vec(a.x, b.x) ^ p) / d) + o;
}
int N, sqr[129];
bool isHole = false;
double ans = 0.0f;
double Ox, Oy;
bool Check(Vec O, double d) { return false; }
bool findCir(int x, int y) {
  for (int i(1); i <= (N); ++i)
    if (P[i].x == x && P[i].y == y) return true;
  return false;
}
void Calc(double a, double b, double c, double d, double e, double f) {
  double D = a * e - b * d;
  Ox = (c * e - b * f) / D;
  Oy = (a * f - c * d) / D;
}
int main() {
  scanf("%d", &N);
  for (int i(1); i <= (N); ++i) {
    int x, y;
    scanf("%d %d", &x, &y);
    P[i] = Vec(x, y);
    sqr[i] = x * x + y * y;
  }
  int tmp;
  static int p[3];
  for (int i(1); i <= (N); ++i)
    for (int j(i + 1); j <= (N); ++j)
      for (int k(j + 1); k <= (N); ++k) {
        p[0] = i;
        p[1] = j;
        p[2] = k;
        bool done = false;
        bool good = true;
        do {
          const Vec &a(P[p[0]]), &b(P[p[1]]), &c(P[p[2]]);
          tmp = (b - a) * (c - a);
          if (tmp < 0) good = false;
          if (tmp == 0) {
            if (!findCir(b.x + c.x - a.x, b.y + c.y - a.y))
              good = false;
            else if (tmp == 0) {
              done = true;
              Ox = 0.5 * (b.x + c.x);
              Oy = 0.5 * (b.y + c.y);
            }
          }
        } while (next_permutation(p, p + 3));
        if (!good) continue;
        const Vec &a(P[i]), &b(P[j]), &c(P[k]);
        if (!done) {
          done = true;
          Calc(2 * (a.x - c.x), 2 * (a.y - c.y), sqr[i] - sqr[k],
               2 * (b.x - c.x), 2 * (b.y - c.y), sqr[j] - sqr[k]);
        }
        double d(hypot(a.x - Ox, a.y - Oy));
        for (int c(1); c <= (N); ++c)
          if (c != i && c != j && c != k)
            if (hypot(P[c].x - Ox, P[c].y - Oy) + (1e-6) < d) {
              good = false;
              break;
            }
        if (!good) continue;
        Up(ans, d);
        isHole = true;
      }
  if (!isHole)
    puts("-1");
  else
    printf("%.6lf\n", ans);
  return 0;
}