#include using namespace std; #define rep(i, l, r) for (int i = (int)(l); i<(int)(r); i++) #define ll long long long double getdist(vector> G) { int N = (int)G.size(); pair g; rep(i, 0, N) { g.first += G[i].first; g.second += G[i].second; } g.first /= N; g.second /= N; long double ret = 0; rep(i, 0, N) { ret = max(ret, hypot(g.first-G[i].first, g.second-G[i].second)); } return ret; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; vector> A(N), B(N); rep(i, 0, N) cin >> A[i].first >> A[i].second; rep(i, 0, N) cin >> B[i].first >> B[i].second; long double resa = getdist(A), resb = getdist(B); cout << fixed << setprecision(15) << resb/resa << endl; }