n=int(eval(input()))

xy=[]

for i in range(n):

    xt,yt=list(map(int, input().split()))

    xy.append((xt,yt))



from itertools import permutations



perms=permutations(xy)

dis=[]

for p in perms:

    d_tmp=[]

    for i in range(1,len(p)):

        d=((p[i][0]-p[i-1][0])**2+(p[i][1]-p[i-1][1])**2)**0.5

        d_tmp.append(d)

    dis.append(sum(d_tmp))

        

print((sum(dis)/len(dis)))
n=int(eval(input()))

XY=[]

for i in range(n):

    x,y=list(map(int,input().split()))

    XY.append((x,y))

from itertools import permutations

perm=permutations(XY)



dists=[]

for i in perm:

    dist=0

    for j in range(1,n):

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

    dists.append(dist)

ans=sum(dists)/len(dists)

print(ans)
n = int(eval(input()))
xy = []
for i in range(n):
    xt, yt = list(map(int, input().split()))
    xy.append((xt, yt))
from itertools import permutations

perms = permutations(xy)
dis = []
for p in perms:
    d_tmp = []
    for i in range(1, len(p)):
        d = ((p[i][0] - p[i - 1][0]) ** 2 + (p[i][1] - p[i - 1][1]) ** 2) ** 0.5
        d_tmp.append(d)
    dis.append(sum(d_tmp))
print((sum(dis) / len(dis)))

n = int(eval(input()))
XY = []
for i in range(n):
    x, y = list(map(int, input().split()))
    XY.append((x, y))
from itertools import permutations

perm = permutations(XY)
dists = []
for i in perm:
    dist = 0
    for j in range(1, n):
        dist += ((i[j][0] - i[j - 1][0]) ** 2 + (i[j][1] - i[j - 1][1]) ** 2) ** 0.5
    dists.append(dist)
ans = sum(dists) / len(dists)
print(ans)

-xy = [] +XY = [] -    xt, yt = list(map(int, input().split())) -    xy.append((xt, yt)) +    x, y = list(map(int, input().split())) +    XY.append((x, y)) -perms = permutations(xy) -dis = [] -for p in perms: -    d_tmp = [] -    for i in range(1, len(p)): -        d = ((p[i][0] - p[i - 1][0]) ** 2 + (p[i][1] - p[i - 1][1]) ** 2) ** 0.5 -        d_tmp.append(d) -    dis.append(sum(d_tmp)) -print((sum(dis) / len(dis))) +perm = permutations(XY) +dists = [] +for i in perm: +    dist = 0 +    for j in range(1, n): +        dist += ((i[j][0] - i[j - 1][0]) ** 2 + (i[j][1] - i[j - 1][1]) ** 2) ** 0.5 +    dists.append(dist) +ans = sum(dists) / len(dists) +print(ans)