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 double pi = acos(-1);
struct ww {
  double x, y;
  inline void read() { scanf("%lf%lf", &x, &y); }
  inline ww operator-(const ww &A) { return (ww){x - A.x, y - A.y}; }
  inline double com() { return x * x + y * y; }
  inline bool operator==(const ww &A) { return x == A.x && y == A.y; }
} a[1010];
struct w1 {
  double x;
  int z;
} c[1010 * 4];
int i, j, k, n, m, w, h, s, t;
int f[1010], cen[1010], f1[1010], f2[1010], id[1010];
double wei[1010][1010], dis[1010][1010], len[1010];
inline void into(double l, double r, int cen) {
  if (l < -pi)
    into(l + 2 * pi, pi, cen), into(-pi, r, cen);
  else if (r > pi)
    into(l, pi, cen), into(-pi, r - 2 * pi, cen);
  else
    c[++t] = (w1){l, cen}, c[++t] = (w1){r, -cen};
}
inline bool cc1(const w1 &a, const w1 &b) { return a.x < b.x; }
inline double ju(int i, double x) {
  int j;
  s = t = 0;
  for (j = 1; j <= n; j++)
    if (dis[i][j] > 1e-9 && dis[i][j] <= x) {
      double A = acos(dis[i][j] / x);
      into(wei[i][j] - A, wei[i][j] + A, 1);
    }
  if (a[i].x < x) {
    double A = acos(a[i].x / x);
    into(pi - A, pi + A, 5);
  }
  if (a[i].x + x > w) {
    double A = acos((w - a[i].x) / x);
    into(-A, A, 5);
  }
  if (a[i].y < x) {
    double A = acos(a[i].y / x);
    into(-pi / 2 - A, -pi / 2 + A, 5);
  }
  if (a[i].y + x > h) {
    double A = acos((h - a[i].y) / x);
    into(pi / 2 - A, pi / 2 + A, 5);
  }
  c[++t] = (w1){pi, 0};
  c[++t] = (w1){-pi, 0};
  sort(c + 1, c + t + 1, cc1);
  int sum = 0;
  for (j = 1; j <= t; j++) {
    if (j > 1 && sum < 2 && (j == 1 || c[j].x > c[j - 1].x + 1e-9)) return 1;
    sum += c[j].z;
  }
  return 0;
}
int main() {
  scanf("%d%d%d", &w, &h, &n);
  for (i = 1; i <= n; i++) a[i].read(), id[i] = i;
  for (i = 1; i <= n; i++)
    for (j = 1; j <= n; j++) {
      ww O = a[j] - a[i];
      wei[i][j] = atan2(O.y, O.x);
      dis[i][j] = sqrt(O.com()) / 2;
    }
  double l = sqrt(2) / 2;
  random_shuffle(id + 1, id + n + 1);
  for (i = 1; i <= n; i++) {
    int A = id[i];
    if (ju(A, l)) {
      double r = 2e6, mid;
      for (; l + 1e-9 < r;) {
        mid = (l + r) / 2;
        if (ju(A, mid))
          l = mid;
        else
          r = mid;
      }
      l = (l + r) / 2;
    }
  }
  printf("%.12lf\n", l);
  return 0;
}