N = int(eval(input()))

xy = [[int(i) for i in input().split()] for _ in range(N)]



from itertools import permutations



states = list(permutations(list(range(N))))



ans = 0

for state in states:

    dist = 0

    for i,n in enumerate(state):

        if i == 0:

            prev = xy[n]

            continue

        now = xy[n]

        dist += pow(pow(prev[0]-now[0], 2)+pow(prev[1]-now[1],2),.5)

        prev = now

    ans += dist



ans /= len(states)

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

xy = [[int(i) for i in input().split()] for _ in range(N)]



from itertools import permutations

from math import sqrt



states = list(permutations(list(range(N))))



ans = 0

for state in states:

    dist = 0

    for i,n in enumerate(state):

        if i == 0:

            prev = xy[n]

            continue

        now = xy[n]

        dist += sqrt((prev[0]-now[0]) ** 2+ (prev[1]-now[1]) ** 2)

        prev = now

    ans += dist



ans /= len(states)

print(ans)
N = int(eval(input()))
xy = [[int(i) for i in input().split()] for _ in range(N)]
from itertools import permutations

states = list(permutations(list(range(N))))
ans = 0
for state in states:
    dist = 0
    for i, n in enumerate(state):
        if i == 0:
            prev = xy[n]
            continue
        now = xy[n]
        dist += pow(pow(prev[0] - now[0], 2) + pow(prev[1] - now[1], 2), 0.5)
        prev = now
    ans += dist
ans /= len(states)
print(ans)

N = int(eval(input()))
xy = [[int(i) for i in input().split()] for _ in range(N)]
from itertools import permutations
from math import sqrt

states = list(permutations(list(range(N))))
ans = 0
for state in states:
    dist = 0
    for i, n in enumerate(state):
        if i == 0:
            prev = xy[n]
            continue
        now = xy[n]
        dist += sqrt((prev[0] - now[0]) ** 2 + (prev[1] - now[1]) ** 2)
        prev = now
    ans += dist
ans /= len(states)
print(ans)

+from math import sqrt -        dist += pow(pow(prev[0] - now[0], 2) + pow(prev[1] - now[1], 2), 0.5) +        dist += sqrt((prev[0] - now[0]) ** 2 + (prev[1] - now[1]) ** 2)