Problem: Gena doesn't like geometry, so he asks you to solve this problem for him.

A rectangle with sides parallel to coordinate axes contains n dots. Let's consider some point of the plane. Let's count the distances from this point to the given n points. Let's sort these numbers in the non-decreasing order. We'll call the beauty of the point the second element of this array. If there are two mimimum elements in this array, the beaty will be equal to this minimum.

Find the maximum beauty of a point inside the given rectangle.

Input

The first line contains three integers w, h, n (1 ≤ w, h ≤ 106, 2 ≤ n ≤ 1000) — the lengths of the rectangle sides and the number of points. Next n lines contain two integers xi, yi (0 ≤ xi ≤ w, 0 ≤ yi ≤ h) each — the coordinates of a point. It is possible that it will be coincident points.

Output

Print a single number — the maximum beauty of a point with the absolute or relative error of at most 10 - 9.

Examples

Input

5 5 4
0 0
5 0
0 5
5 5


Output

4.99999999941792340


Input

5 5 3
4 0
2 5
4 1


Output

5.65685424744772010

Note

The point which beauty we need to find must have coordinates (x, y), where 0 ≤ x ≤ w, 0 ≤ y ≤ h. Some of the n points can coincide.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1005;
const double EPS = 1e-11;
const double PI = acos(-1.);
struct intersection {
  double angle;
  int flag;
};
bool comp(const intersection &x, const intersection &y) {
  if (x.angle != y.angle) {
    return x.angle < y.angle;
  }
  return x.flag > y.flag;
}
struct point {
  double x, y;
};
intersection p[MAXN * 6];
point q[MAXN];
int len, n;
double f[MAXN][MAXN], w, h;
void add1(double l, double r, int flag) {
  ++len;
  p[len].angle = l, p[len].flag = flag;
  ++len;
  p[len].angle = r + EPS, p[len].flag = -flag;
}
void add(double x, double y, int flag) {
  if (x < -PI) {
    add1(x + 2 * PI, PI, flag);
    x = -PI;
  }
  if (y > PI) {
    add1(-PI, y - 2 * PI, flag);
    y = PI;
  }
  add1(x, y, flag);
}
bool check(int a, long double r) {
  len = 0;
  for (int i = 0; i < n; ++i) {
    if (i == a) continue;
    double l = sqrt((q[i].x - q[a].x) * (q[i].x - q[a].x) +
                    (q[i].y - q[a].y) * (q[i].y - q[a].y));
    if (l < 2 * r && fabs(l) > EPS) {
      add(f[a][i] - acos(l / 2 / r), f[a][i] + acos(l / 2 / r), 1);
    }
  }
  double v;
  if (q[a].y < r) {
    v = acos(q[a].y / r);
    add(-PI / 2. - v, -PI / 2. + v, 2);
  }
  if (q[a].y + r > h) {
    v = acos((h - q[a].y) / r);
    add(PI / 2. - v, PI / 2. + v, 2);
  }
  if (q[a].x < r) {
    v = acos(q[a].x / r);
    add(-PI - v, -PI + v, 2);
  }
  if (q[a].x + r > w) {
    v = acos((w - q[a].x) / r);
    add(0 - v, 0 + v, 2);
  }
  sort(p + 1, p + len + 1, comp);
  p[0].angle = -PI, p[0].flag = 0;
  p[++len].angle = PI, p[len].flag = 0;
  int sum = 0;
  sum += p[0].flag;
  for (int i = 1; i <= len; ++i) {
    if (sum <= 1 && (p[i].angle - p[i - 1].angle >= EPS)) {
      return true;
    }
    sum += p[i].flag;
  }
  return false;
}
double d[MAXN];
double get(double x, double y) {
  for (int i = 0; i < n; ++i) {
    d[i] = sqrt((x - q[i].x) * (x - q[i].x) + (y - q[i].y) * (y - q[i].y));
  }
  sort(d, d + n);
  return d[1];
}
int MAIN() {
  cin >> w >> h >> n;
  for (int i = 0; i < n; ++i) {
    cin >> q[i].x >> q[i].y;
  }
  random_shuffle(q, q + n);
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      f[i][j] = atan2(q[j].y - q[i].y, q[j].x - q[i].x);
    }
  }
  double ans = 0;
  ans = max(ans, get(0, 0));
  ans = max(ans, get(w, 0));
  ans = max(ans, get(0, h));
  ans = max(ans, get(w, h));
  for (int i = 0; i < n; ++i) {
    if (check(i, ans + 1e-9)) {
      double l = ans, r = sqrt(w * w + h * h);
      for (int j = 0; j < 50; ++j) {
        double mid = (l + r) / 2.;
        if (check(i, mid)) {
          l = mid;
        } else {
          r = mid;
        }
      }
      ans = (l + r) / 2.;
    }
  }
  cout << ans << endl;
  return 0;
}
int main() {
  ios ::sync_with_stdio(false);
  cout << fixed << setprecision(18);
  return MAIN();
}