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.0);
struct point {
  double x, y;
  point(double x = 0, double y = 0) : x(x), y(y){};
  point operator+(const point &I) const { return point(x + I.x, y + I.y); }
  point operator-(const point &I) const { return point(x - I.x, y - I.y); }
  point operator/(const double &I) const { return point(x / I, y / I); }
  double len() { return sqrt(x * x + y * y); }
  bool operator==(const point &I) const {
    return fabs(x - I.x) < 1e-9 && fabs(y - I.y) < 1e-9;
  }
} num[1009];
int n;
int id[1009];
double dis[1009][1009];
double w, h;
double ag[1009][1009];
double ss[8009];
int p[8009];
int top;
int cnt;
double normal(double &a) {
  while (a < -pi) a += 2 * pi;
  while (a > pi) a -= 2 * pi;
}
void add(double l, double r) {
  normal(l);
  normal(r);
  ss[top++] = l;
  ss[top++] = r;
  if (l > r) cnt++;
}
bool cmp(int a, int b) {
  return fabs(ss[a] - ss[b]) > 1e-9 ? ss[a] < ss[b] : (a & 1) < (b & 1);
}
bool check(int a, double m) {
  top = 0;
  double agl;
  cnt = 0;
  if (num[a].x - m < 0) {
    agl = acos(num[a].x / m);
    add(pi - agl, pi + agl);
    add(pi - agl, pi + agl);
  }
  if (num[a].x + m > w) {
    agl = acos((w - num[a].x) / m);
    add(-agl, agl);
    add(-agl, agl);
  }
  if (num[a].y - m < 0) {
    agl = acos(num[a].y / m);
    add(-pi / 2 - agl, pi * 3 / 2 + agl);
    add(-pi / 2 - agl, pi * 3 / 2 + agl);
  }
  if (num[a].y + m > h) {
    agl = acos((h - num[a].y) / m);
    add(pi / 2 - agl, pi / 2 + agl);
    add(pi / 2 - agl, pi / 2 + agl);
  }
  for (int i = 0; i < n; i++) {
    if (i == a || num[i] == num[a] || dis[i][a] > 2 * m || dis[i][a] < 1e-9)
      continue;
    agl = acos(dis[a][i] / 2 / m);
    add(ag[a][i] - agl, ag[a][i] + agl);
  }
  for (int i = 0; i < top; i++) p[i] = i;
  sort(p, p + top, cmp);
  if (cnt <= 1) return true;
  for (int i = 0; i < top; i++) {
    cnt += ((p[i] & 1)) ? -1 : 1;
    if (cnt <= 1) return true;
  }
  return false;
}
int MAIN() {
  scanf("%lf%lf%d", &w, &h, &n);
  for (int i = 0; i < n; i++) {
    scanf("%lf%lf", &num[i].x, &num[i].y);
  }
  for (int i = 0; i < n; i++) {
    id[i] = i;
  }
  random_shuffle(id, id + n);
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (i != j) {
        dis[i][j] = (num[i] - num[j]).len();
        ag[i][j] = atan2(num[j].y - num[i].y, num[j].x - num[i].x);
      }
    }
  }
  double m = 0;
  double up = sqrt(w * w + h * h);
  for (int i = 0; i < n; i++)
    if (check(id[i], m + m * 1e-9)) {
      double l = m, r = 2e6;
      while (r - l > 1e-9) {
        double mid = (l + r) / 2;
        if (check(id[i], mid)) {
          l = mid;
        } else {
          r = mid;
        }
      }
      m = l;
    }
  printf("%.15lf\n", m);
  return 0;
}
int main() {
  MAIN();
  return 0;
}