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 ep = 1e-8;
const double inf = 1e9;
const double pi = 3.14159265358979323846264338327950288L;
struct pnt {
  double x, y;
  pnt(double x = 0, double y = 0) : x(x), y(y) {}
  pnt operator+(const pnt &b) { return pnt(x + b.x, y + b.y); }
  pnt operator-(const pnt &b) { return pnt(x - b.x, y - b.y); }
  pnt operator*(const double &b) { return pnt(x * b, y * b); }
  pnt operator/(const double &b) { return pnt(x / b, y / b); }
  double operator&(const pnt &b) { return x * b.x + y * b.y; }
  double operator^(const pnt &b) { return x * b.y - b.x * y; }
  bool operator<(const pnt &b) const {
    return abs(x - b.x) > ep ? x < b.x : y < b.y;
  }
  bool operator==(const pnt &b) {
    return abs(x - b.x) < ep && abs(y - b.y) < ep;
  }
  bool operator!=(const pnt &b) {
    return abs(x - b.x) > ep || abs(y - b.y) > ep;
  }
  pnt rotate(double alpha) {
    pnt R = pnt(sin(alpha), cos(alpha)), C = *this;
    return pnt(C ^ R, C & R);
  }
  pnt rot() { return pnt(-y, x); }
  double dist() { return sqrt(x * x + y * y); }
  pnt norm() { return dist() > ep ? (*this) / dist() : pnt(1, 0); }
  void input() { scanf("%lf %lf", &x, &y); }
  void print() { printf("%.12lf %.12lf\n", x, y); }
};
void Cut(pnt a, pnt b, vector<pnt> &p) {
  pnt mid = (a + b) / 2;
  pnt aa = mid + (b - a).rot();
  pnt bb = mid - (b - a).rot();
  if ((bb - aa ^ a - aa) > ep) swap(aa, bb);
  a = aa, b = bb;
  int sz = p.size();
  vector<pnt> ret;
  for (int i = 0; i < sz; i++) {
    double chk = b - a ^ p[i] - a;
    if (chk < ep) ret.push_back(p[i]);
    double chk2 = b - a ^ p[(i + 1) % sz] - a;
    if ((chk < -ep && chk2 > ep) || (chk > ep && chk2 < -ep)) {
      pnt tp = p[i] + (p[(i + 1) % sz] - p[i]) * chk / (chk - chk2);
      ret.push_back(tp);
    }
  }
  p = ret;
}
vector<int> adj;
int w, h, wgh[1010];
double ans;
void voronoi(vector<pnt> &p) {
  int n = p.size();
  for (int st = 0; st < n; st++) {
    adj.clear();
    vector<pnt> ret(4);
    ret[0] = pnt(0, 0);
    ret[1] = pnt(w, 0);
    ret[2] = pnt(w, h);
    ret[3] = pnt(0, h);
    for (int i = 0; i < n; i++) {
      if (st == i) continue;
      Cut(p[st], p[i], ret);
    }
    int cnt = ret.size();
    if (wgh[st] > 1) {
      for (int i = 0; i < cnt; i++) ans = max(ans, (p[st] - ret[i]).dist());
      continue;
    }
    ret.push_back(ret[0]);
    for (int i = 0; i < cnt; i++) {
      pnt mid = (ret[i] + ret[i + 1]) / 2;
      double mn = 1e20;
      int km = -1;
      for (int j = 0; j < n; j++) {
        if (j == st) continue;
        double cur = (mid - p[j]).dist();
        if (cur < mn) {
          mn = cur;
          km = j;
        }
      }
      adj.push_back(km);
    }
    ret.pop_back();
    int sz = adj.size();
    for (int i = 0; i < sz; i++) {
      vector<pnt> vec = ret;
      for (int j = 0; j < sz; j++) {
        if (j == i) continue;
        Cut(p[adj[i]], p[adj[j]], vec);
      }
      int k = adj[i];
      for (int j = 0; j < vec.size(); j++)
        ans = max(ans, (p[k] - vec[j]).dist());
    }
  }
}
int n;
vector<pnt> p;
void refresh() {
  sort(p.begin(), p.end());
  int nn = 1;
  wgh[0] = 1;
  for (int i = 1; i < n; i++) {
    if (p[i] == p[nn - 1])
      wgh[nn - 1]++;
    else {
      p[nn] = p[i];
      wgh[nn] = 1;
      nn++;
    }
  }
  n = nn;
  p.resize(n);
}
int main() {
  scanf("%d%d%d", &w, &h, &n);
  p.resize(n);
  for (int i = 0; i < n; i++) p[i].input();
  refresh();
  voronoi(p);
  printf("%.12lf\n", ans);
}