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 JAVA):

Solution:
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.PriorityQueue;
import java.util.Random;
import java.util.StringTokenizer;

public class C
{
	String line;
	StringTokenizer inputParser;
	BufferedReader is;
	FileInputStream fstream;
	DataInputStream in;
	String FInput="";
	
	
	void openInput(String file)
	{

		if(file==null)is = new BufferedReader(new InputStreamReader(System.in));//stdin
		else
		{
			try{
		
				
			fstream = new FileInputStream(file);
			in = new DataInputStream(fstream);
			is = new BufferedReader(new InputStreamReader(in));
			}catch(Exception e)
			{
				System.err.println(e);
			}
		}

	}
	
	void readNextLine()
	{
		try {
			line = is.readLine();
			inputParser = new StringTokenizer(line, " ");
			//System.err.println("Input: " + line);
		} catch (IOException e) {
			System.err.println("Unexpected IO ERROR: " + e);
		}	
		
	}
	
	int NextInt()
	{
		String n = inputParser.nextToken();
		int val = Integer.parseInt(n);
		
		//System.out.println("I read this number: " + val);
		return val;
	}
	
	private double NextDouble() {
        String n = inputParser.nextToken();
        double val = Double.parseDouble(n);
        return val;
	}
	
	String NextString()
	{
		String n = inputParser.nextToken();
		return n;
	}
	
	void closeInput()
	{
		try {
			is.close();
		} catch (IOException e) {
			System.err.println("Unexpected IO ERROR: " + e);
		}
			
	}
	
	public void readFInput()
	{
		for(;;)
		{
			try
			{
				readNextLine();
				FInput+=line+" ";
			}
			catch(Exception e)
			{
				break;
			}
		}
		inputParser = new StringTokenizer(FInput, " ");
	}
	
	long NextLong()
    {
            String n = inputParser.nextToken();
            
            long val = Long.parseLong(n);
            
            return val;
    }
	
	public static void main(String [] argv)
	{
		//String filePath="input.txt";
        String filePath=null;
        if(argv.length>0)filePath=argv[0];
		new C(filePath);
	}
	
	public C(String inputFile)
	{
		openInput(inputFile);
		//readNextLine();
		int T=1;//NextInt();
		StringBuilder sb = new StringBuilder();
		for(int t=1; t<=T; t++)
		{
			readNextLine();
			int N=NextInt();
			long X=NextInt();
			long Y=NextInt();
			
			double max=0, min=Double.MAX_VALUE;
			
			long prevx = -1, prevy = -1;
			long firstx = -1, firsty = -1;
			for(int i=0; i<N; i++)
			{
				readNextLine();
				long x = NextInt();
				long y = NextInt();
				if(i==0)
				{
					firstx = x;
					firsty = y;
				}
				max = Math.max(max, (x-X)*(x-X)+(y-Y)*(y-Y));
				min = Math.min(min, (x-X)*(x-X)+(y-Y)*(y-Y));
				
				if(i>0)
				{
					long xDelta = x - prevx;
					long yDelta = y - prevy;
				    
				    double u = ((X - prevx) * xDelta + (Y - prevy) * yDelta) / (double)(xDelta * xDelta + yDelta * yDelta);
				    if(u>0&&u<1)
				    {
				    	double xx = prevx + u * xDelta;
				    	double yy = prevy + u * yDelta;
				    	min = Math.min(min, (xx-X)*(xx-X)+(yy-Y)*(yy-Y));
				    }
				}
				
				prevx = x;
				prevy = y;
				
				if(N>1 && i+1==N)
				{
					long xDelta = x - firstx;
				    long yDelta = y - firsty;
				    
				    double u = ((X - firstx) * xDelta + (Y - firsty) * yDelta) / (double)(xDelta * xDelta + yDelta * yDelta);
				    if(u>0&&u<1)
				    {
				    	double xx = firstx + u * xDelta;
				    	double yy = firsty + u * yDelta;
				    	min = Math.min(min, (xx-X)*(xx-X)+(yy-Y)*(yy-Y));
				    }
				}

			}
			
			
			
			double ret = Math.PI * (max -min);
			sb.append(ret);
		}
		System.out.print(sb);
		
		closeInput();		
	}

}