N = int(eval(input()))

L = [list(map(int,input().split())) for i in range(N)]

ans = 0

import math

def d(x1,x2):

    return math.sqrt((x1[0]-x2[0])**2+(x1[1]-x2[1])**2)

for i in range(N-1):

    for j in range(i+1,N):

        ans += d(L[i],L[j])*2/N

print(ans)
N = int(eval(input()))

import math

def d(x,y):

    return math.sqrt((x[0]-y[0])**2+(x[1]-y[1])**2)

ans = 0

xy = [list(map(int,input().split())) for i in range(N)]

for i in range(N-1):

    for j in range(i,N):

        ans += 2*d(xy[i],xy[j])/N

print(ans)
N = int(eval(input()))
L = [list(map(int, input().split())) for i in range(N)]
ans = 0
import math


def d(x1, x2):
    return math.sqrt((x1[0] - x2[0]) ** 2 + (x1[1] - x2[1]) ** 2)


for i in range(N - 1):
    for j in range(i + 1, N):
        ans += d(L[i], L[j]) * 2 / N
print(ans)

N = int(eval(input()))
import math


def d(x, y):
    return math.sqrt((x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2)


ans = 0
xy = [list(map(int, input().split())) for i in range(N)]
for i in range(N - 1):
    for j in range(i, N):
        ans += 2 * d(xy[i], xy[j]) / N
print(ans)

-L = [list(map(int, input().split())) for i in range(N)] -ans = 0 -def d(x1, x2): -    return math.sqrt((x1[0] - x2[0]) ** 2 + (x1[1] - x2[1]) ** 2) +def d(x, y): +    return math.sqrt((x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2) +ans = 0 +xy = [list(map(int, input().split())) for i in range(N)] -    for j in range(i + 1, N): -        ans += d(L[i], L[j]) * 2 / N +    for j in range(i, N): +        ans += 2 * d(xy[i], xy[j]) / N