#include <iostream>
#include <cmath>
using namespace std;
int n;
long double x[15000],y[15000];
long double f(long double k){
long double rez=0;
for (int i=0;i<n;i++)
rez=rez+sqrt(y[i]*y[i]+(x[i]-k)*(x[i]-k));
return rez;
}
int main(){
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
long double l,r;
cin>>n;
for (int i=0;i<n;i++)
cin>>x[i]>>y[i];
l=x[0];
r=x[1];
for (int i=0;i<500;i++)
{
long double k=(r-l)/3;
if (f(l+k)>f(l+k+k))
l=l+k;
else r=l+k*2;
}
cout<<r;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBuOwpsb25nIGRvdWJsZSB4WzE1MDAwXSx5WzE1MDAwXTsKbG9uZyBkb3VibGUgZihsb25nIGRvdWJsZSBrKXsKICAgIGxvbmcgZG91YmxlIHJlej0wOwogICAgZm9yIChpbnQgaT0wO2k8bjtpKyspCiAgICAgICAgcmV6PXJleitzcXJ0KHlbaV0qeVtpXSsoeFtpXS1rKSooeFtpXS1rKSk7CiAgICByZXR1cm4gcmV6Owp9CmludCBtYWluKCl7CiAgICBmcmVvcGVuKCJpbnB1dC50eHQiLCJyIixzdGRpbik7CiAgICBmcmVvcGVuKCJvdXRwdXQudHh0IiwidyIsc3Rkb3V0KTsKICAgIGxvbmcgZG91YmxlIGwscjsKICAgIGNpbj4+bjsKICAgIGZvciAoaW50IGk9MDtpPG47aSsrKQogICAgICAgIGNpbj4+eFtpXT4+eVtpXTsKICAgIGw9eFswXTsKICAgIHI9eFsxXTsKICAgIGZvciAoaW50IGk9MDtpPDUwMDtpKyspCiAgICB7CiAgICAgICAgbG9uZyBkb3VibGUgaz0oci1sKS8zOwogICAgICAgIGlmIChmKGwrayk+ZihsK2sraykpCiAgICAgICAgICAgIGw9bCtrOwogICAgICAgIGVsc2Ugcj1sK2sqMjsKICAgIH0KICAgIGNvdXQ8PHI7CiAgICByZXR1cm4gMDsKfQ==