n=int(eval(input()))

xy=[]

for i in range(n):

  xx,yy=list(map(int,input().split()))

  xy.append((xx,yy))

from itertools import permutations

a=list(permutations(xy))

d=[]

for aa in a:

  t=0

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

    t+=((aa[i+1][0]-aa[i][0])**2+(aa[i+1][1]-aa[i][1])**2)**0.5

  d.append(t)

print((sum(d)/len(d)))

n = int(eval(input()))

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

from itertools import permutations

count = 0

dist = 0

for l in list(permutations(xy)):

    tmp = 0

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

        tmp += ((l[i+1][0]-l[i][0])**2+(l[i+1][1]-l[i][1])**2)**0.5

    dist += tmp

    count += 1



print((dist/count))



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

a = list(permutations(xy))
d = []
for aa in a:
    t = 0
    for i in range(len(aa) - 1):
        t += ((aa[i + 1][0] - aa[i][0]) ** 2 + (aa[i + 1][1] - aa[i][1]) ** 2) ** 0.5
    d.append(t)
print((sum(d) / len(d)))

n = int(eval(input()))
xy = [list(map(int, input().split())) for _ in range(n)]
from itertools import permutations

count = 0
dist = 0
for l in list(permutations(xy)):
    tmp = 0
    for i in range(len(l) - 1):
        tmp += ((l[i + 1][0] - l[i][0]) ** 2 + (l[i + 1][1] - l[i][1]) ** 2) ** 0.5
    dist += tmp
    count += 1
print((dist / count))

-xy = [] -for i in range(n): -    xx, yy = list(map(int, input().split())) -    xy.append((xx, yy)) +xy = [list(map(int, input().split())) for _ in range(n)] -a = list(permutations(xy)) -d = [] -for aa in a: -    t = 0 -    for i in range(len(aa) - 1): -        t += ((aa[i + 1][0] - aa[i][0]) ** 2 + (aa[i + 1][1] - aa[i][1]) ** 2) ** 0.5 -    d.append(t) -print((sum(d) / len(d))) +count = 0 +dist = 0 +for l in list(permutations(xy)): +    tmp = 0 +    for i in range(len(l) - 1): +        tmp += ((l[i + 1][0] - l[i][0]) ** 2 + (l[i + 1][1] - l[i][1]) ** 2) ** 0.5 +    dist += tmp +    count += 1 +print((dist / count))