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;
int n;
pair<double, double> p[110];
pair<int, int> q[110];
set<pair<int, int> > A;
void read(int &x) {
  char ch = getchar();
  int mark = 1;
  for (; ch != '-' && (ch < '0' || ch > '9'); ch = getchar())
    ;
  if (ch == '-') mark = -1, ch = getchar();
  for (x = 0; ch >= '0' && ch <= '9'; ch = getchar()) x = x * 10 + ch - 48;
  x *= mark;
}
double dp(pair<double, double> A, pair<double, double> B,
          pair<double, double> C) {
  return (B.first - A.first) * (C.first - A.first) +
         (B.second - A.second) * (C.second - A.second);
}
inline double sqr(double x) { return x * x; }
inline double dis(pair<double, double> a, pair<double, double> b) {
  return sqrt(sqr(a.first - b.first) + sqr(a.second - b.second));
}
pair<double, double> gen(pair<double, double> a, pair<double, double> b,
                         pair<double, double> c) {
  pair<double, double> ans;
  double A = sqr(dis(b, c)), B = sqr(dis(a, c)), C = sqr(dis(a, b));
  double AA = dis(b, c), BB = dis(a, c), CC = dis(a, b);
  double S = sqr((a.first - c.first) * (b.second - c.second) -
                 (a.second - c.second) * (b.first - c.first)) /
             4;
  double aa = B / S / 16 * (C + A - B);
  double bb = C / S / 16 * (A + B - C);
  ans.first = a.first + aa * (b.first - a.first) + bb * (c.first - a.first);
  ans.second =
      a.second + aa * (b.second - a.second) + bb * (c.second - a.second);
  return ans;
}
bool check(pair<double, double> A, double len) {
  for (int i = 1; i <= n; i++)
    if (dis(A, p[i]) + 1e-8 < len) return 0;
  return 1;
}
int main() {
  read(n);
  for (int i = 1; i <= n; i++)
    scanf("%lf%lf", &p[i].first, &p[i].second), q[i] = p[i], A.insert(q[i]);
  double Max = -1e9;
  for (int i = 1; i <= n; i++)
    for (int j = i + 1; j <= n; j++)
      for (int k = j + 1; k <= n; k++)
        if (dp(p[i], p[j], p[k]) > 0 && dp(p[j], p[i], p[k]) > 0 &&
            dp(p[k], p[i], p[j]) > 0) {
          pair<double, double> tmp = gen(p[i], p[j], p[k]);
          double T = dis(tmp, p[i]);
          if (check(tmp, T)) Max = max(Max, T);
        }
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++)
      if (i != j)
        for (int k = 1; k <= n; k++)
          if (i != k && j != k && dp(p[i], p[j], p[k]) == 0) {
            pair<int, int> tmp;
            tmp.first = q[j].first - q[i].first + q[k].first;
            tmp.second = q[j].second - q[i].second + q[k].second;
            if (A.find(tmp) != A.end()) {
              pair<double, double> t1;
              t1.first = (p[j].first + p[k].first) / 2,
              t1.second = (p[j].second + p[k].second) / 2;
              double T = dis(t1, p[j]);
              if (check(t1, T)) Max = max(Max, T);
            }
          }
  if (Max == -1e9)
    printf("-1\n");
  else
    printf("%.7lf\n", Max);
  return 0;
}