#include<bits/stdc++.h>
using namespace std;
const double PI=3.1415926535;
bool s[10];
double x[10];
double y[10];
double r[10];
double xa,xb,ya,yb,ansmax;
int n;
double ban(int i){
double s1=min(abs(x[i]-xa),abs(x[i]-xb));
double s2=min(abs(y[i]-ya),abs(y[i]-yb));
double ans=min(s1,s2);
for(int j=1;j<=n;j++){
if(i!=j&&s[j]){
double d=sqrt((x[i]-x[j])*(x[i]-x[j])+(y[i]-y[j])*(y[i]-y[j]));
ans=min(ans,max(d-r[j],0.0));
}
}
return ans;
}
void dfs(int k,double sum){
if(k>n){
ansmax=max(ansmax,sum);
return;
}
for(int i=1;i<=n;i++){
if(!s[i]){
r[i]=ban(i);
s[i]=true;
dfs(k+1,sum+r[i]*r[i]*PI);
s[i]=false;
}
}
}
int main(){
double ss;
cin>>n;
cin>>xa>>ya>>xb>>yb;
ss=abs(xa-xb)*abs(ya-yb);
for(int i=1;i<=n;i++){
cin>>x[i]>>y[i];
}
dfs(1,0);
printf("%.0f",(ss-ansmax));
}