from itertools import permutations



n = int(eval(input()))

x, y = list(zip(*[list(map(int, input().split()))for i in range(n)]))

ans = cnt = 0

for i in permutations(list(range(n))):

        cnt += 1

        for j in range(n-1):

                f, t = i[j], i[j+1]

                ans += ((x[f]-x[t])**2 + (y[f]-y[t])**2)**0.5

print((ans/cnt))
n = int(eval(input()))

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

ans = 0

for i in range(n):

    for j in range(n):

        ans += ((a[i][0]-a[j][0])**2 + (a[i][1]-a[j][1])**2)**0.5

print((ans/n))
from itertools import permutations

n = int(eval(input()))
x, y = list(zip(*[list(map(int, input().split())) for i in range(n)]))
ans = cnt = 0
for i in permutations(list(range(n))):
    cnt += 1
    for j in range(n - 1):
        f, t = i[j], i[j + 1]
        ans += ((x[f] - x[t]) ** 2 + (y[f] - y[t]) ** 2) ** 0.5
print((ans / cnt))

n = int(eval(input()))
a = [list(map(int, input().split())) for i in range(n)]
ans = 0
for i in range(n):
    for j in range(n):
        ans += ((a[i][0] - a[j][0]) ** 2 + (a[i][1] - a[j][1]) ** 2) ** 0.5
print((ans / n))

-from itertools import permutations - -x, y = list(zip(*[list(map(int, input().split())) for i in range(n)])) -ans = cnt = 0 -for i in permutations(list(range(n))): -    cnt += 1 -    for j in range(n - 1): -        f, t = i[j], i[j + 1] -        ans += ((x[f] - x[t]) ** 2 + (y[f] - y[t]) ** 2) ** 0.5 -print((ans / cnt)) +a = [list(map(int, input().split())) for i in range(n)] +ans = 0 +for i in range(n): +    for j in range(n): +        ans += ((a[i][0] - a[j][0]) ** 2 + (a[i][1] - a[j][1]) ** 2) ** 0.5 +print((ans / n))