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 long double eps = 1e-9;
const int inf = (1 << 30) - 1;
const long long inf64 = ((long long)1 << 62) - 1;
const long double pi = 3.1415926535897932384626433832795;
template <class T>
T sqr(T first) {
  return first * first;
}
template <class T>
T abs(T first) {
  return first < 0 ? -first : first;
}
const int nmax = 110;
int n;
pair<double, double> p[nmax];
vector<int> g[nmax];
int used[nmax];
pair<double, double> operator+(pair<double, double> a, pair<double, double> b) {
  return pair<double, double>(a.first + b.first, a.second + b.second);
}
pair<double, double> operator-(pair<double, double> a, pair<double, double> b) {
  return pair<double, double>(a.first - b.first, a.second - b.second);
}
pair<double, double> operator*(pair<double, double> a, double b) {
  return pair<double, double>(a.first * b, a.second * b);
}
pair<double, double> operator/(pair<double, double> a, double b) {
  return pair<double, double>(a.first / b, a.second / b);
}
struct line {
  double a, b, c;
  line(){};
  line(pair<double, double> v, pair<double, double> u) {
    a = u.second - v.second;
    b = v.first - u.first;
    c = -v.first * a - v.second * b;
  }
};
double side(line l, pair<double, double> v) {
  return l.a * v.first + l.b * v.second + l.c;
}
double dist(pair<double, double> a, pair<double, double> b) {
  return sqrt(sqr(a.first - b.first) + sqr(a.second - b.second));
}
inline double det(double a, double b, double c, double d) {
  return a * d - b * c;
}
bool cross(line l1, line l2, pair<double, double> &res) {
  double o = det(l1.a, l1.b, l2.a, l2.b);
  double ox = det(-l1.c, l1.b, -l2.c, l2.b);
  double oy = det(l1.a, -l1.c, l2.a, -l2.c);
  if (fabs(o) < eps) return 0;
  res = make_pair(ox / o, oy / o);
  return 1;
}
line getb(pair<double, double> a, pair<double, double> b) {
  pair<double, double> m = (a + b) / 2;
  pair<double, double> e = a - m;
  swap(e.first, e.second);
  e.first *= -1;
  return line(m, m + e);
}
double smul(pair<double, double> a, pair<double, double> b) {
  return a.first * b.first + a.second * b.second;
}
pair<double, double> get(pair<double, double> a, pair<double, double> b,
                         pair<double, double> c) {
  if (smul(b - a, c - a) < eps) return a;
  if (smul(a - b, c - b) < eps) return a;
  if (smul(b - c, a - c) < eps) return a;
  line l1 = getb(a, b);
  line l2 = getb(a, c);
  pair<double, double> res = a;
  if (cross(l1, l2, res))
    return res;
  else
    return a;
}
double res;
void update(pair<double, double> now, double cur) {
  if (cur < res) return;
  for (int l = 0; l < (int)(n); l++)
    if (dist(now, p[l]) < cur - eps) return;
  res = max(res, cur);
}
void no() {
  puts("-1");
  exit(0);
}
bool dfs(int v, int pr) {
  used[v] = 1;
  for (int i = 0; i < (int)(g[v].size()); i++) {
    if (used[g[v][i]] == 1 && g[v][i] != pr) return 1;
    if (!used[g[v][i]] && dfs(g[v][i], v)) return 1;
  }
  used[v] = 2;
  return 0;
}
bool check(double res) {
  memset(used, 0, sizeof used);
  for (int i = 0; i < (int)(n); i++) {
    g[i].clear();
    for (int j = 0; j < (int)(n); j++)
      if (dist(p[i], p[j]) < res * 2 && i != j) {
        g[i].push_back(j);
      }
  }
  for (int i = 0; i < (int)(n); i++)
    if (used[i] == 0)
      if (dfs(i, -1)) return 1;
  return 0;
}
void go(int v) {
  used[v] = 1;
  for (int i = 0; i < (int)(g[v].size()); i++)
    if (!used[g[v][i]]) go(g[v][i]);
}
double vmul(pair<double, double> a, pair<double, double> b) {
  return a.first * b.second - a.second * b.first;
}
bool go(int v, int u, double l, int sz) {
  for (int i = 0; i < (int)(n); i++) {
    g[i].clear();
    if (vmul(p[u] - p[v], p[i] - p[v]) * sz < -eps) continue;
    for (int j = 0; j < (int)(n); j++) {
      if (vmul(p[u] - p[v], p[j] - p[v]) * sz < -eps) continue;
      if (dist(p[i], p[j]) < 2 * l) g[i].push_back(j);
    }
  }
  memset(used, 0, sizeof used);
  go(v);
  if (!used[u]) return 0;
  return 1;
}
int main() {
  cin >> n;
  for (int i = 0; i < (int)(n); i++) cin >> p[i].first >> p[i].second;
  {
    if (n <= 2) no();
    line l(p[0], p[1]);
    bool done = 1;
    for (int i = 0; i < (int)(n); i++)
      if (side(l, p[i]) > eps) done = 0;
    if (done) no();
  }
  res = -1;
  for (int i = 0; i < (int)(n); i++)
    for (int j = 0; j < (int)(i); j++) {
      pair<double, double> now = (p[i] + p[j]) * 0.5;
      double cur = 1e9;
      for (int q = 0; q < (int)(n); q++) cur = min(cur, dist(now, p[q]));
      if (go(i, j, cur - (1e-4), -1) && go(i, j, cur - (1e-4), 1))
        update(now, dist(p[i], now));
    }
  for (int i = 0; i < (int)(n); i++)
    for (int j = 0; j < (int)(i); j++)
      for (int k = 0; k < (int)(j); k++) {
        pair<double, double> now = get(p[i], p[j], p[k]);
        double cur = dist(now, p[i]);
        if (cur < res) continue;
        update(now, cur);
      }
  if (!check(res - 1e-3)) no();
  printf("%0.9lf\n", res);
  return 0;
}