#include using namespace std; using ll = long long; template istream& operator >> (istream& is, vector& vec) { for(T& x : vec) is >> x; return is; } int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; vector> a(n), b(n); ll X0 = 0, Y0 = 0, X1 = 0, Y1 = 0; ll sx0 = 0, sy0 = 0, sx1 = 0, sy1 = 0; for(auto &&[x, y] : a){ cin >> x >> y; X0 += x, Y0 += y; } for(auto &&[x, y] : b){ cin >> x >> y; X1 += x, Y1 += y; } //double GX0 = double(X0) / n, GY0 = double(Y0) / n; //double GX1 = double(X1) / n, GY1 = double(Y1) / n; __int128 s0 = 0, s1 = 0; for(auto &&[x, y] : a){ __int128 dx = (ll)(n) * x - X0; __int128 dy = (ll)(n) * y - Y0; s0 = max(s0, dx * dx + dy * dy); } for(auto &&[x, y] : b){ __int128 dx = (ll)(n) * x - X1; __int128 dy = (ll)(n) * y - Y1; s1 = max(s1, dx * dx + dy * dy); } cout << fixed << setprecision(15) << (double)sqrtl((long double)(s1) / s0) << '\n'; }