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;
#pragma comment(linker, "/STACK:200000000")
const double C = 2E4;
const double EPS = 1E-7;
const int INF = 1000000000;
const long long INF64 = (long long)1E18;
const double PI = 3.1415926535897932384626433832795;
struct pt {
  long double x, y;
  pt() {}
  pt(long double x, long double y) : x(x), y(y) {}
  bool operator<(const pt& p) const {
    return x < p.x - EPS || abs(x - p.x) < EPS && y < p.y - EPS;
  }
};
struct line {
  long double a, b, c;
  line() {}
  line(const pt& a, const pt& b) {
    this->a = a.y - b.y;
    this->b = -a.x + b.x;
    this->c = -a.x * this->a - a.y * this->b;
    long double t = sqrt(this->a * this->a + this->b * this->b);
    this->a /= t;
    this->b /= t;
    this->c /= t;
  }
  long double dist(const pt& p) { return a * p.x + b * p.y + c; }
};
pt a[110];
long double ans;
int n;
line perp(const pt& a, const pt& b) {
  line res;
  res.a = a.x - b.x;
  res.b = a.y - b.y;
  res.c = -res.a * (a.x + b.x) / 2 - res.b * (a.y + b.y) / 2;
  long double t = sqrt(res.a * res.a + res.b * res.b);
  res.a /= t;
  res.b /= t;
  res.c /= t;
  return res;
}
bool intersect(const line& l1, const line& l2, pt& res) {
  long double d = (l1.a * l2.b - l1.b * l2.a);
  if (abs(d) < EPS) return false;
  res.x = -(l1.c * l2.b - l1.b * l2.c) / d;
  res.y = -(l1.a * l2.c - l1.c * l2.a) / d;
  return true;
}
long double dist(const pt& a, const pt& b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
int sg(long double a) {
  if (abs(a) < EPS) return 0;
  return a < 0 ? -1 : +1;
}
bool inside(vector<pt>& a, pt b) {
  bool res = false;
  for (int i = 0; i < (int)(a.size()); i++) {
    pt p = a[i], q = a[(i + 1) % a.size()];
    if (min(p.x, q.x) - EPS <= b.x && b.x < max(p.x, q.x) - EPS) {
      long double sy = p.y + (q.y - p.y) * (b.x - p.x) / (q.x - p.x);
      if (abs(sy - b.y) < EPS) return false;
      res ^= b.y < sy;
    }
  }
  return res;
}
void divide(vector<pt>& a, line l, int s) {
  vector<pt> res;
  for (int i = 0; i < (int)(a.size()); i++) {
    pt& cur = a[i];
    pt& to = a[(i + 1) % a.size()];
    if (sg(l.dist(cur)) == s || sg(l.dist(cur)) == 0) res.push_back(cur);
    if (sg(l.dist(cur)) * sg(l.dist(to)) < 0) {
      pt r;
      intersect(l, line(cur, to), r);
      res.push_back(r);
    }
  }
  a = res;
}
pt glc;
bool cmp_ang(const pt& a, const pt& b) {
  long double a1 = atan2(a.y - glc.y, a.x - glc.x);
  long double a2 = atan2(b.y - glc.y, b.x - glc.x);
  return a1 < a2 - EPS || abs(a1 - a2) < EPS && dist(glc, a) < dist(glc, b);
}
long double vec(pt a, pt b, pt c) {
  return (b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x);
}
vector<pt> convex_hull(vector<pt>& a) {
  if (a.size() <= 2) return a;
  swap(a[0], *min_element(a.begin(), a.end()));
  glc = a[0];
  sort(a.begin() + 1, a.end(), cmp_ang);
  vector<pt> v;
  v.reserve(a.size());
  v.push_back(a[0]);
  v.push_back(a[1]);
  for (int i = (int)(2); i < (int)(a.size()); i++) {
    while (v.size() > 1 && sg(vec(v[v.size() - 2], v.back(), a[i])) <= 0)
      v.pop_back();
    v.push_back(a[i]);
  }
  return v;
}
int main() {
  cin >> n;
  for (int i = 0; i < (int)(n); i++) cin >> a[i].x >> a[i].y;
  map<pt, vector<pt> > z;
  for (int i = 0; i < (int)(n); i++) {
    vector<pt> b;
    b.push_back(pt(-C, -C));
    b.push_back(pt(-C, +C));
    b.push_back(pt(+C, +C));
    b.push_back(pt(+C, -C));
    for (int j = 0; j < (int)(n); j++)
      if (i != j) {
        line l = perp(a[i], a[j]);
        divide(b, l, sg(l.dist(a[i])));
      }
    for (int j = 0; j < (int)(b.size()); j++)
      if (abs(abs(b[j].x) - C) > 1 && abs(abs(b[j].y) - C) > 1)
        z[b[j]].push_back(a[i]);
  }
  ans = -1;
  for (map<pt, vector<pt> >::iterator it = z.begin(); it != z.end(); it++) {
    vector<pt> b = convex_hull(it->second);
    if (inside(b, it->first)) ans = max(ans, dist(b[0], it->first));
  }
  if (ans < -0.5)
    puts("-1");
  else {
    cout.setf(ios::fixed);
    cout.precision(20);
    cout << ans << endl;
  }
  return 0;
}