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>
struct Point {
  double x, y;
};
static Point ZERO = {0, 0};
static Point RIGHT_TOP_LIMIT = {1000000, 1000000};
static Point LEFT_BOTTOM_LIMIT = {-1000000, -1000000};
double distance(Point* a, Point* b) {
  return std::sqrt(std::pow(a->x - b->x, 2) + std::pow(a->y - b->y, 2));
}
Point* sum(Point* a, Point* b) {
  Point* x = new Point();
  *x = Point{a->x + b->x, a->y + b->y};
  return x;
}
Point* sub(Point* a, Point* b) {
  Point* x = new Point();
  *x = Point{a->x - b->x, a->y - b->y};
  return x;
}
double dot(Point* A, Point* B, Point* C) {
  Point* AB = new Point();
  Point* BC = new Point();
  AB->x = B->x - A->x;
  AB->y = B->y - A->y;
  BC->x = C->x - B->x;
  BC->y = C->y - B->y;
  double dot = AB->x * BC->x + AB->y * BC->y;
  delete AB;
  delete BC;
  return dot;
}
double cross(Point* A, Point* B, Point* C) {
  Point* AB = new Point();
  Point* AC = new Point();
  AB->x = B->x - A->x;
  AB->y = B->y - A->y;
  AC->x = C->x - A->x;
  AC->y = C->y - A->y;
  double cross = AB->x * AC->y - AB->y * AC->x;
  delete AB;
  delete AC;
  return cross;
}
double line_point_distance(Point* A, Point* B, Point* C, bool isSegment) {
  double dist = cross(A, B, C) / distance(A, B);
  if (isSegment) {
    double dot1 = dot(A, B, C);
    if (dot1 > 0) return distance(B, C);
    double dot2 = dot(B, A, C);
    if (dot2 > 0) return distance(A, C);
  }
  return std::abs(dist);
}
std::vector<Point*> convexHull(std::vector<Point*> points, Point* leftmost) {
  Point* start = leftmost;
  Point* p = leftmost;
  std::vector<Point*> res;
  do {
    Point* n = nullptr;
    for (Point* i : points) {
      if (i == p) continue;
      if (!n) n = i;
      Point* temp1 = sub(i, p);
      Point* temp2 = sub(n, p);
      double x = cross(&ZERO, temp1, temp2);
      delete temp1;
      delete temp2;
      if (x < 0) {
        n = i;
      }
    }
    res.push_back(n);
    p = n;
  } while (start != p);
  return res;
}
int main() {
  int32_t n;
  double x, y;
  scanf("%u%lf%lf", &n, &x, &y);
  Point* center = new Point();
  *center = {x, y};
  std::vector<Point*> all_points;
  for (uint32_t i = 0; i < n; i++) {
    scanf("%lf%lf", &x, &y);
    Point* v = new Point();
    *v = Point{x, y};
    all_points.push_back(v);
  }
  double d_short = distance(&RIGHT_TOP_LIMIT, &LEFT_BOTTOM_LIMIT);
  double d_far = 0;
  Point* prev = all_points.back();
  for (Point* p : all_points) {
    double d = line_point_distance(prev, p, center, true);
    if (d < d_short) d_short = d;
    d = distance(center, p);
    if (d > d_far) d_far = d;
    prev = p;
  }
  double big = 3.14159265358979323846264338327950288 * std::pow(d_far, 2);
  double small = 3.14159265358979323846264338327950288 * std::pow(d_short, 2);
  printf("%.18lf\n", big - small);
  delete center;
  for (Point* p : all_points) {
    delete p;
  }
  return 0;
}