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;
int IN() {
  int c, f, x;
  while (!isdigit(c = getchar()) && c != '-')
    ;
  c == '-' ? (f = 1, x = 0) : (f = 0, x = c - '0');
  while (isdigit(c = getchar())) x = (x << 1) + (x << 3) + c - '0';
  return !f ? x : -x;
}
const int N = 1000 + 19, oo = 1 << 25;
const long double Pi = acos(-1.0);
long double w, h, Ans, L, R, t, __a[N], __d[N];
int n, c, m;
struct Point {
  long double x, y;
  Point() {}
  Point(long double __x, long double __y) { x = __x, y = __y; }
} P[N];
long double Dist(Point A, Point B) {
  return sqrt((A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y));
}
pair<long double, int> A[N * 4];
void __Add(long double s, long double t, int v) {
  A[++c] = make_pair(s, v), A[++c] = make_pair(t + 1e-12, -v);
}
void Add(long double s, long double t, int v) {
  if (s < 0) __Add(s + 2 * Pi, 2 * Pi, v), s = 0;
  if (t > 2 * Pi) __Add(0, t - 2 * Pi, v), t = 2 * Pi;
  __Add(s, t, v);
}
bool Check(int i, long double r) {
  c = 0;
  if (P[i].x < r) t = acos(P[i].x / r), Add(Pi - t, Pi + t, oo);
  if (P[i].x + r > w) t = acos((w - P[i].x) / r), Add(-t, t, oo);
  if (P[i].y < r) t = asin(P[i].y / r), Add(Pi + t, 2 * Pi - t, oo);
  if (P[i].y + r > h) t = asin((h - P[i].y) / r), Add(t, Pi - t, oo);
  for (int j = 1; j < m + 1; j++)
    if (0 < __d[j] && __d[j] < 2 * r) {
      long double a = __a[j], b = acos(__d[j] / 2.0 / r);
      if (a < 0) a += 2 * Pi;
      Add(a - b, a + b, 1);
    }
  sort(A + 1, A + c + 1);
  A[++c] = make_pair(2 * Pi, 0);
  int tmp = 0;
  for (int j = 1; j < c + 1; j++) {
    if (A[j].first > A[j - 1].first && tmp <= 1) return 1;
    tmp += A[j].second;
  }
  return 0;
}
int main() {
  w = IN(), h = IN(), n = IN();
  for (int i = 1; i < n + 1; i++) P[i].x = IN(), P[i].y = IN();
  random_shuffle(P + 1, P + n + 1);
  for (int i = 1; i < n + 1; i++) {
    m = 0;
    for (int j = 1; j < n + 1; j++)
      if (i != j)
        m++, __d[m] = Dist(P[i], P[j]),
             __a[m] = atan2(P[j].y - P[i].y, P[j].x - P[i].x);
    if (!Check(i, L + 1e-9)) continue;
    R = 2e6;
    while (R - L > 1e-9) {
      long double Mid = (L + R) / 2.0;
      if (Check(i, Mid))
        L = Mid;
      else
        R = Mid;
    }
  }
  printf("%.15lf\n", double(L));
}