N = int(eval(input()))

A = [tuple(map(int, input().split())) for _ in range(N)]

ans = []

import numpy as np

import itertools

for zyun in itertools.permutations(list(range(N))):

    cnt = 0

    for k in range(len(zyun)-1):

        cnt += np.sqrt((A[zyun[k+1]][0]-A[zyun[k]][0])**2+(A[zyun[k+1]][1]-A[zyun[k]][1])**2 )

    ans.append(cnt)

print((sum(ans) / len(ans)))
N = int(eval(input()))

A = [tuple(map(int, input().split())) for _ in range(N)]

ans = []

import numpy as np

for i in range(len(A)-1):

    for k in range(i+1,len(A)):

        ans.append(np.sqrt(((A[i][0]-A[k][0])**2)+(A[i][1]-A[k][1])**2))

print((sum(ans)*2/N))
N = int(eval(input()))
A = [tuple(map(int, input().split())) for _ in range(N)]
ans = []
import numpy as np
import itertools

for zyun in itertools.permutations(list(range(N))):
    cnt = 0
    for k in range(len(zyun) - 1):
        cnt += np.sqrt(
            (A[zyun[k + 1]][0] - A[zyun[k]][0]) ** 2
            + (A[zyun[k + 1]][1] - A[zyun[k]][1]) ** 2
        )
    ans.append(cnt)
print((sum(ans) / len(ans)))

N = int(eval(input()))
A = [tuple(map(int, input().split())) for _ in range(N)]
ans = []
import numpy as np

for i in range(len(A) - 1):
    for k in range(i + 1, len(A)):
        ans.append(np.sqrt(((A[i][0] - A[k][0]) ** 2) + (A[i][1] - A[k][1]) ** 2))
print((sum(ans) * 2 / N))

-import itertools -for zyun in itertools.permutations(list(range(N))): -    cnt = 0 -    for k in range(len(zyun) - 1): -        cnt += np.sqrt( -            (A[zyun[k + 1]][0] - A[zyun[k]][0]) ** 2 -            + (A[zyun[k + 1]][1] - A[zyun[k]][1]) ** 2 -        ) -    ans.append(cnt) -print((sum(ans) / len(ans))) +for i in range(len(A) - 1): +    for k in range(i + 1, len(A)): +        ans.append(np.sqrt(((A[i][0] - A[k][0]) ** 2) + (A[i][1] - A[k][1]) ** 2)) +print((sum(ans) * 2 / N))