Problem: Peter got a new snow blower as a New Year present. Of course, Peter decided to try it immediately. After reading the instructions he realized that it does not work like regular snow blowing machines. In order to make it work, you need to tie it to some point that it does not cover, and then switch it on. As a result it will go along a circle around this point and will remove all the snow from its path.

Formally, we assume that Peter's machine is a polygon on a plane. Then, after the machine is switched on, it will make a circle around the point to which Peter tied it (this point lies strictly outside the polygon). That is, each of the points lying within or on the border of the polygon will move along the circular trajectory, with the center of the circle at the point to which Peter tied his machine.

Peter decided to tie his car to point P and now he is wondering what is the area of ​​the region that will be cleared from snow. Help him.

Input

The first line of the input contains three integers — the number of vertices of the polygon n (<image>), and coordinates of point P.

Each of the next n lines contains two integers — coordinates of the vertices of the polygon in the clockwise or counterclockwise order. It is guaranteed that no three consecutive vertices lie on a common straight line.

All the numbers in the input are integers that do not exceed 1 000 000 in their absolute value.

Output

Print a single real value number — the area of the region that will be cleared. Your answer will be considered correct if its absolute or relative error does not exceed 10 - 6. 

Namely: let's assume that your answer is a, and the answer of the jury is b. The checker program will consider your answer correct, if <image>.

Examples

Input

3 0 0
0 1
-1 2
1 2


Output

12.566370614359172464


Input

4 1 -1
0 0
1 2
2 0
1 1


Output

21.991148575128551812

Note

In the first sample snow will be removed from that area:

<image>

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
template <class T>
int size(const T &x) {
  return x.size();
}
const int INF = 2147483647;
const double EPS = 1e-9;
const double pi = acos(-1.0);
double dot(const complex<double> &a, const complex<double> &b) {
  return real(conj(a) * b);
}
double cross(const complex<double> &a, const complex<double> &b) {
  return imag(conj(a) * b);
}
complex<double> rotate(const complex<double> &p, double radians = pi / 2,
                       const complex<double> &about = complex<double>(0, 0)) {
  return (p - about) * exp(complex<double>(0, radians)) + about;
}
complex<double> reflect(const complex<double> &p, const complex<double> &about1,
                        const complex<double> &about2) {
  complex<double> z = p - about1, w = about2 - about1;
  return conj(z / w) * w + about1;
}
complex<double> proj(const complex<double> &u, const complex<double> &v) {
  return dot(u, v) / dot(u, u) * u;
}
complex<double> normalize(const complex<double> &p, double k = 1.0) {
  return abs(p) == 0 ? complex<double>(0, 0) : p / abs(p) * k;
}
double ccw(const complex<double> &a, const complex<double> &b,
           const complex<double> &c) {
  return cross(b - a, c - b);
}
bool collinear(const complex<double> &a, const complex<double> &b,
               const complex<double> &c) {
  return abs(ccw(a, b, c)) < EPS;
}
double angle(const complex<double> &a, const complex<double> &b,
             const complex<double> &c) {
  return acos(dot(b - a, c - b) / abs(b - a) / abs(c - b));
}
double signed_angle(const complex<double> &a, const complex<double> &b,
                    const complex<double> &c) {
  return asin(cross(b - a, c - b) / abs(b - a) / abs(c - b));
}
double angle(const complex<double> &p) { return atan2(imag(p), real(p)); }
complex<double> perp(const complex<double> &p) {
  return complex<double>(-imag(p), real(p));
}
double progress(const complex<double> &p, const complex<double> &a,
                const complex<double> &b) {
  if (abs(real(a) - real(b)) < EPS)
    return (imag(p) - imag(a)) / (imag(b) - imag(a));
  else
    return (real(p) - real(a)) / (real(b) - real(a));
}
double polygon_area_signed(vector<complex<double> > p) {
  double area = 0;
  int cnt = size(p);
  for (__typeof(1) i = (1); i < (cnt - 1); ++i)
    area += cross(p[i] - p[0], p[i + 1] - p[0]);
  return area / 2;
}
double polygon_area(vector<complex<double> > p) {
  return abs(polygon_area_signed(p));
}
int point_in_polygon(vector<complex<double> > p, complex<double> q) {
  int n = size(p);
  bool in = false;
  double d;
  for (int i = 0, j = n - 1; i < n; j = i++)
    if (collinear(p[i], q, p[j]) && 0 <= (d = progress(q, p[i], p[j])) &&
        d <= 1)
      return 0;
  for (int i = 0, j = n - 1; i < n; j = i++)
    if ((real(p[i]) < real(q) && real(q) <= real(p[j]) &&
         ccw(p[i], p[j], q) < 0) ||
        (real(p[j]) < real(q) && real(q) <= real(p[i]) &&
         ccw(p[j], p[i], q) < 0))
      in = !in;
  return in ? -1 : 1;
}
bool collinear(const complex<double> &a, const complex<double> &b,
               const complex<double> &p, const complex<double> &q) {
  return abs(ccw(a, b, p)) < EPS && abs(ccw(a, b, q)) < EPS;
}
bool parallel(const complex<double> &a, const complex<double> &b,
              const complex<double> &p, const complex<double> &q) {
  return abs(cross(b - a, q - p)) < EPS;
}
complex<double> closest_point(const complex<double> &a,
                              const complex<double> &b,
                              const complex<double> &c, bool segment = false) {
  if (segment) {
    if (dot(b - a, c - b) > 0) return b;
    if (dot(a - b, c - a) > 0) return a;
  }
  double t = dot(c - a, b - a) / norm(b - a);
  return a + t * (b - a);
}
double line_segment_distance(const complex<double> &a, const complex<double> &b,
                             const complex<double> &c,
                             const complex<double> &d) {
  double x = INFINITY;
  if (abs(a - b) < EPS && abs(c - d) < EPS)
    x = abs(a - c);
  else if (abs(a - b) < EPS)
    x = abs(a - closest_point(c, d, a, true));
  else if (abs(c - d) < EPS)
    x = abs(c - closest_point(a, b, c, true));
  else if ((ccw(a, b, c) < 0) != (ccw(a, b, d) < 0) &&
           (ccw(c, d, a) < 0) != (ccw(c, d, b) < 0))
    x = 0;
  else {
    x = min(x, abs(a - closest_point(c, d, a, true)));
    x = min(x, abs(b - closest_point(c, d, b, true)));
    x = min(x, abs(c - closest_point(a, b, c, true)));
    x = min(x, abs(d - closest_point(a, b, d, true)));
  }
  return x;
}
bool intersect(const complex<double> &a, const complex<double> &b,
               const complex<double> &p, const complex<double> &q,
               complex<double> &res, bool segment = false) {
  complex<double> r = b - a, s = q - p;
  double c = cross(r, s), t = cross(p - a, s) / c, u = cross(p - a, r) / c;
  if (segment && (t < 0 - EPS || t > 1 + EPS || u < 0 - EPS || u > 1 + EPS))
    return false;
  res = a + t * r;
  return true;
}
double area(double r) { return r * r * pi; }
int main() {
  int n;
  double x, y;
  scanf("%d %lf %lf\n", &n, &x, &y);
  complex<double> mid(x, y);
  vector<complex<double> > P;
  for (__typeof(0) i = (0); i < (n); ++i) {
    double a, b;
    scanf("%lf %lf", &a, &b);
    P.push_back(complex<double>(a, b));
  }
  double mx = 0, mn = INFINITY;
  for (__typeof(0) i = (0); i < (n); ++i) {
    int j = (i + 1) % n;
    mx = max(mx, abs(P[i] - mid));
    complex<double> c = closest_point(P[i], P[j], mid, true);
    mn = min(mn, abs(c - mid));
  }
  printf("%0.10lf\n", area(mx) - area(mn));
  return 0;
}