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 i, double mid) {
  len = 0;
  for (int j = 0; j < n; ++j) {
    if (j != i) {
      double l = sqrt((q[i].x - q[j].x) * (q[i].x - q[j].x) +
                      (q[i].y - q[j].y) * (q[i].y - q[j].y));
      if (l < 2 * mid && fabs(l) > EPS) {
        add(f[i][j] - acos(l / 2 / mid), f[i][j] + acos(l / 2 / mid), 1);
      }
    }
  }
  if (q[i].y - mid < 0) {
    double d = acos(q[i].y / mid);
    add(-PI / 2 - d, -PI / 2 + d, 2);
  }
  if (q[i].y + mid > h) {
    double d = acos((h - q[i].y) / mid);
    add(PI / 2 - d, PI / 2 + d, 2);
  }
  if (q[i].x - mid < 0) {
    double d = acos(q[i].x / mid);
    add(-PI - d, -PI + d, 2);
  }
  if (q[i].x + mid > w) {
    double d = acos((w - q[i].x) / mid);
    add(0 - d, 0 + d, 2);
  }
  sort(p + 1, p + len + 1, comp);
  p[++len].angle = PI, p[len].flag = 0;
  int sum = 0;
  p[0].angle = -PI;
  for (int j = 1; j <= len; ++j) {
    if (p[j].angle > p[j - 1].angle + EPS && sum <= 1) return 1;
    sum += p[j].flag;
  }
  return 0;
}
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();
}