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 int Maxn = 105;
const double Eps = 1e-7;
inline int eps(double x, double y) {
  if (fabs(x - y) < Eps) return 0;
  return x < y ? -1 : 1;
}
struct Node {
  double x, y;
  Node() {}
  Node(double x, double y) : x(x), y(y) {}
  double dist(const Node &e) const {
    return (x - e.x) * (x - e.x) + (y - e.y) * (y - e.y);
  }
  double operator*(const Node &e) const { return x * e.x + y * e.y; }
} node[Maxn];
int n;
bool perpendicular;
double ans;
bool find(Node e) {
  for (int i = 0; i < n; ++i)
    if (eps(node[i].x, e.x) == 0 && eps(node[i].y, e.y) == 0) return true;
  return false;
}
bool checkLen(double r, Node e) {
  for (int i = 0; i < n; ++i)
    if (eps(e.dist(node[i]), r) < 0) return false;
  return true;
}
bool check(int i, int j, int k) {
  int tmp = eps(Node(node[j].x - node[i].x, node[j].y - node[i].y) *
                    Node(node[k].x - node[i].x, node[k].y - node[i].y),
                0);
  if (tmp == 0 && find(Node(node[j].x + node[k].x - node[i].x,
                            node[j].y + node[k].y - node[i].y))) {
    Node o = Node((node[j].x + node[k].x) / 2, (node[j].y + node[k].y) / 2);
    double r = o.dist(node[i]);
    if (checkLen(r, o)) ans = max(ans, r);
  }
  return tmp > 0;
}
Node getC(int i, int j, int k) {
  double x1 = node[i].x, y1 = node[i].y;
  double x3 = node[j].x, y3 = node[j].y;
  double x4 = node[k].x, y4 = node[k].y;
  return Node(0.5 * (((y3 - y1) * (x4 * x4 + y4 * y4) +
                      (y4 - y3) * (x1 * x1 + y1 * y1) -
                      (y4 - y1) * (x3 * x3 + y3 * y3)) /
                     ((x4 - x1) * (y3 - y1) - (x3 - x1) * (y4 - y1))),
              0.5 * (((x3 - x1) * (x4 * x4 + y4 * y4) +
                      (x4 - x3) * (x1 * x1 + y1 * y1) -
                      (x4 - x1) * (x3 * x3 + y3 * y3)) /
                     ((y4 - y1) * (x3 - x1) - (y3 - y1) * (x4 - x1))));
}
bool solve() {
  ans = -1;
  for (int i = 0; i < n; ++i) {
    for (int j = i + 1; j < n; ++j) {
      for (int k = j + 1; k < n; ++k) {
        if (!check(i, j, k) || !check(j, i, k) || !check(k, i, j)) continue;
        Node o = getC(i, j, k);
        double r = o.dist(node[i]);
        if (checkLen(r, o)) ans = max(ans, r);
      }
    }
  }
  return ans > 0;
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) scanf("%lf%lf", &node[i].x, &node[i].y);
  if (!solve())
    puts("-1");
  else
    printf("%.6f\n", sqrt(ans));
  return 0;
}