#include<cstdio>
#include<algorithm>
#include<cmath>
#define M 2000000000
using namespace std;
FILE *f=fopen("rubarba.in","r");
FILE *g=fopen("rubarba.out","w");
struct coord
{
long long x,y;
double tg;
};
coord L[210001];
long long minx=M,miny=M;
long long stiv[210001],n,sf;
coord aux;
long long cmp(coord a,coord b)
{
return a.tg>b.tg;
}
void muta(long long &x,long long &y)
{
x=x-minx;
y=y-miny;
}
void citire()
{ long long i,poz;
long long xx,yy;
fscanf(f,"%lld",&n);
for(i=1;i<=n;i++)
{
fscanf(f,"%lld%lld",&xx,&yy);
L[i].x=xx;
L[i].y=yy;
if(minx>xx)
{
minx=xx;
miny=yy;
poz=i;
}
else
if(minx==xx)
if(miny>yy)
{
miny=yy;
poz=i;
}
}
swap(L[n],L[poz]);n--;
for(i=1;i<=n;i++) muta(L[i].x,L[i].y);
for(i=1;i<=n;i++)L[i].tg=atan2(L[i].y,L[i].x);
sort(L+1,L+n+1,cmp);
}
long long det(coord a,coord b,coord c)
{
return 1LL*(a.x-c.x)*(b.y-c.y)-1LL*(a.y-c.y)*(b.x-c.x);
}
void infasuratoare()
{
long long i;
stiv[1]=1;sf=1;
for(i=2;i<=n;i++)
{
while(sf>=1&&det(L[stiv[sf-1]],L[i],L[stiv[sf]])<0)sf--;
stiv[++sf]=i;
}
minx=-minx;miny=-miny;
for(i=0;i<=n;i++)muta(L[i].x,L[i].y);
}
double dist(long long x1,long long y1,double a,double b,double c)
{
return abs(a*x1+b*y1+c)/sqrt(a*a+b*b);
}
coord cauta(double a,double b,double c,double &dis)
{
double auxx;
double distmax=-M;
long long punct;
long long i;
for(i=0;i<=sf;i++)
{
auxx=dist(L[stiv[i]].x,L[stiv[i]].y,a,b,c);
if(auxx>distmax)
{
distmax=auxx;
punct=i;
}
}
dis=distmax;
return L[stiv[punct]];
}
void dreapta(double &a,double &b,double &c)
{
double m;
if (a != 0)
{
m = ((double)b)/a;
a = m;
b = -1;
c = -m*aux.x + aux.y;
}
else
{
a = 1;
b = 0;
c = -aux.x;
}
}
void solve()
{
long long i,x1,y1,x2,y2;
double a,b,c,a1,b1,c1;
double minim=M;
double lat1,lat2;
stiv[sf+1]=stiv[0];
for(i=0;i<=sf;i++)
{
x1=L[stiv[i]].x;x2=L[stiv[i+1]].x;
y1=L[stiv[i]].y;y2=L[stiv[i+1]].y;
a=y2-y1;
b=x1-x2;
c=1LL*y1*x2-1LL*x1*y2;
aux=cauta(a,b,c,lat1);
a1=a;b1=b;c1=c;
dreapta(a,b,c);
aux=cauta(a,b,c,lat2);
dreapta(a1,b1,c1);
aux=cauta(a1,b1,c1,lat2);
minim=min(minim,lat2*lat1);
}
fprintf(g,"%.2lf",minim);
}
int main()
{
citire();
infasuratoare();
solve();
return 0;
}