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;
FILE *debug;
void setIO(string file = "sample") {}
void closeIO() {}
template <class T>
void read(T &x) {
  char tmp = 0;
  T flag = 1, ret = 0;
  while (tmp != '-' && !isdigit(tmp)) tmp = getchar();
  if (tmp == '-') flag = -1, tmp = getchar();
  while (isdigit(tmp)) ret *= 10, ret += tmp - '0', tmp = getchar();
  x = flag * ret;
}
long long getint() {
  long long ret;
  read<long long>(ret);
  return ret;
}
void endline() { fprintf(debug, "\n"); }
const double PI = acos(-1.0);
const double eps = 1e-9;
int sgn(const double &x) {
  if (x < -eps)
    return -1;
  else if (x > eps)
    return 1;
  return 0;
}
int n;
double w, h;
pair<double, double> po[1010];
int curCov;
int eve_n;
double eveA[(1010 + 8) * 2];
int eveId[(1010 + 8) * 2];
void nA(double &a) {
  while (a < -PI) a += 2 * PI;
  while (a > PI) a -= 2 * PI;
}
void add(double l, double r) {
  nA(l);
  nA(r);
  eveA[eve_n++] = l, eveA[eve_n++] = r;
  if (l > r) curCov++;
}
inline bool lesseveid(const int &i, const int &j) {
  if (sgn(eveA[i] - eveA[j]) != 0) return eveA[i] < eveA[j];
  return (i & 1) < (j & 1);
}
bool check(int p, double r) {
  if (sgn(r) == 0) return true;
  curCov = 0;
  eve_n = 0;
  pair<double, double> o = po[p];
  if (r > o.first) {
    double th = acos(o.first / r);
    add(-PI - th, -PI + th);
    add(-PI - th, -PI + th);
  }
  if (r > w - o.first) {
    double th = acos((w - o.first) / r);
    add(-th, th);
    add(-th, th);
  }
  if (r > o.second) {
    double th = acos(o.second / r);
    add(-PI / 2.0 - th, -PI / 2.0 + th);
    add(-PI / 2.0 - th, -PI / 2.0 + th);
  }
  if (r > h - o.second) {
    double th = acos((h - o.second) / r);
    add(PI / 2.0 - th, PI / 2 + th);
    add(PI / 2.0 - th, PI / 2 + th);
  }
  for (int i = 0; i < n; ++i)
    if (i != p) {
      double d = hypot(po[i].first - o.first, po[i].second - o.second);
      if (d == 0 || d >= 2 * r) continue;
      double alpha = atan2(po[i].second - o.second, po[i].first - o.first),
             th = acos(d / (2 * r));
      add(alpha - th, alpha + th);
    }
  for (int i = 0; i < eve_n; ++i) eveId[i] = i;
  sort(eveId, eveId + eve_n, lesseveid);
  if (curCov <= 1) return true;
  for (int i = 0; i < eve_n; ++i) {
    curCov += (eveId[i] & 1) ? -1 : 1;
    if (curCov <= 1) return true;
  }
  return false;
}
int main(int argc, char *argv[]) {
  setIO("sample");
  srand(192737);
  cin >> w >> h >> n;
  for (int i = 0; i < n; ++i) cin >> po[i].first >> po[i].second;
  random_shuffle(po, po + n);
  double res = 0.0;
  for (int i = 0; i < n; ++i)
    if (check(i, res + 1e-9)) {
      double ri = hypot(w, h);
      double delta = ri - res;
      while (delta > 1e-10) {
        double mid = (res + ri) / 2;
        if (check(i, mid))
          res = mid;
        else
          ri = mid;
        delta /= 2;
      }
    }
  cout << fixed << setprecision(10) << res;
  closeIO();
  return EXIT_SUCCESS;
}