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;
pair<int, int> arr[100005];
double cross_3D(const complex<double> &O, const complex<double> &A,
                const complex<double> &B) {
  return (A.real() - O.real()) * (B.imag() - O.imag()) -
         (A.imag() - O.imag()) * (B.real() - O.real());
}
bool sorter(const complex<double> &a, const complex<double> &b) {
  if (a.real() == b.real()) return a.imag() < b.imag();
  return a.real() < b.real();
}
vector<complex<double> > convex_hull(vector<complex<double> > &P) {
  int n = P.size(), k = 0;
  vector<complex<double> > H(2 * n);
  sort(P.begin(), P.end(), sorter);
  for (int i = 0; i < n; i++) {
    while (k >= 2 && cross_3D(H[k - 2], H[k - 1], P[i]) <= 0) k--;
    H[k++] = P[i];
  }
  for (int i = n - 2, t = k + 1; i >= 0; i--) {
    while (k >= t && cross_3D(H[k - 2], H[k - 1], P[i]) <= 0) k--;
    H[k++] = P[i];
  }
  H.resize(k);
  return H;
}
vector<complex<double> > line_circle_intersection(const complex<double> &x,
                                                  double r,
                                                  const complex<double> &a,
                                                  const complex<double> &b) {
  vector<complex<double> > res;
  double dx = b.real() - a.real();
  double dy = b.imag() - a.imag();
  double A = dx * dx + dy * dy;
  double B = 2 * (dx * (a.real() - x.real()) + dy * (a.imag() - x.imag()));
  double C = x.real() * x.real() + x.imag() * x.imag();
  C += a.real() * a.real() + a.imag() * a.imag();
  C -= 2 * (x.real() * a.real() + x.imag() * a.imag());
  C -= r * 1.0 * r;
  double tmp = B * B - 4 * A * C;
  if (tmp < 0) return res;
  if (tmp == 0)
    res.push_back(-B / (2.0 * A));
  else {
    res.push_back((-B + tmp) / (2.0 * A));
    res.push_back((-B - tmp) / (2.0 * A));
  }
  return res;
}
bool point_on_ray(const complex<double> &a, const complex<double> &b,
                  const complex<double> &p) {
  return fabs(((conj((b - a)) * (p - a)).imag())) < 1e-6 &&
         ((conj((b - a)) * (p - a)).real()) > -1e-6;
}
bool point_on_line(const complex<double> &a, const complex<double> &b,
                   const complex<double> &p) {
  return fabs(((conj((b - a)) * (p - a)).imag())) < 1e-6;
}
bool point_on_segment(const complex<double> &a, const complex<double> &b,
                      const complex<double> &p) {
  if (((conj((b - a)) * (b - a)).real()) < 1e-6)
    return ((conj((p - a)) * (p - a)).real()) < 1e-6;
  return point_on_ray(a, b, p) && point_on_ray(b, a, p);
}
complex<double> divide_line_by_ratio(const complex<double> &a,
                                     const complex<double> &b,
                                     const double &r) {
  return a + r * (b - a);
}
double point_line_distance(const complex<double> &a, const complex<double> &b,
                           const complex<double> &p, complex<double> &res) {
  double temp =
      ((conj((b - a)) * (p - a)).real()) / ((conj((b - a)) * (b - a)).real());
  res = divide_line_by_ratio(a, b, temp);
  return hypot((p - res).real(), (p - res).imag());
}
double point_segment_min_distance(const complex<double> &a,
                                  const complex<double> &b,
                                  const complex<double> &p,
                                  complex<double> &res) {
  if (a.real() == b.real() && a.imag() == b.imag()) {
    res = complex<double>(a.real(), a.imag());
    return hypot((p - res).real(), (p - res).imag());
  }
  double temp =
      ((conj((b - a)) * (p - a)).real()) / ((conj((b - a)) * (b - a)).real());
  if (temp < 1e-6) {
    res = complex<double>(a.real(), a.imag());
    return hypot((p - res).real(), (p - res).imag());
  }
  if (temp > 1) {
    res = complex<double>(b.real(), b.imag());
    return hypot((p - res).real(), (p - res).imag());
  }
  return point_line_distance(a, b, p, res);
}
int main() {
  int n;
  double x, y;
  scanf("%d %lf %lf", &n, &x, &y);
  double r1 = 0.0, r2 = 1e18;
  vector<complex<double> > v;
  for (int i = 0; i < n; i++) {
    scanf("%d %d", &arr[i].first, &arr[i].second);
    r1 = max(r1, sqrt((arr[i].first - x) * 1.0 * (arr[i].first - x) +
                      (arr[i].second - y) * 1.0 * (arr[i].second - y)));
    r2 = min(r2, sqrt((arr[i].first - x) * 1.0 * (arr[i].first - x) +
                      (arr[i].second - y) * 1.0 * (arr[i].second - y)));
    v.push_back(complex<double>(arr[i].first, arr[i].second));
  }
  complex<double> p = complex<double>(x, y), tmp;
  double res = acos(-1) * (r1 * r1 - r2 * r2);
  v.push_back(complex<double>(arr[0].first, arr[0].second));
  vector<pair<complex<double>, complex<double> > > lines;
  for (int i = 0; i < v.size() - 1; i++) {
    r2 = min(r2, point_segment_min_distance(v[i], v[i + 1], p, tmp));
  }
  res = acos(-1) * (r1 * r1 - r2 * r2);
  printf("%.15lf", res);
  return 0;
}