int n,i,j;
double m,z,x[100001],y[100001];
main(){scanf("%d",&n);for(i=0;i<n;i++)scanf("%lf%lf",x+i,y+i);m=99999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%.9f\n",sqrt(m));exit(0);}