n = int(eval(input()))

ll = []

for i in range(n):

  ll.append(list(map(int, input().split())))



import itertools as it

lt = list(it.permutations(list(range(0, n))))



def dist(i, j):

  return ((ll[i][0]-ll[j][0])**2 + (ll[i][1]-ll[j][1])**2)**0.5



d = 0



for t in lt:

  for i in range(n-1):

    d += dist(t[i], t[i+1])



print((d/len(lt)))
n = int(eval(input()))

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

d = 0

for x1,y1 in ll:

  for x2,y2 in ll:

    d += ((x1-x2)**2+(y1-y2)**2)**0.5

print((d/n))
n = int(eval(input()))
ll = []
for i in range(n):
    ll.append(list(map(int, input().split())))
import itertools as it

lt = list(it.permutations(list(range(0, n))))


def dist(i, j):
    return ((ll[i][0] - ll[j][0]) ** 2 + (ll[i][1] - ll[j][1]) ** 2) ** 0.5


d = 0
for t in lt:
    for i in range(n - 1):
        d += dist(t[i], t[i + 1])
print((d / len(lt)))

n = int(eval(input()))
ll = [list(map(int, input().split())) for _ in range(n)]
d = 0
for x1, y1 in ll:
    for x2, y2 in ll:
        d += ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5
print((d / n))

-ll = [] -for i in range(n): -    ll.append(list(map(int, input().split()))) -import itertools as it - -lt = list(it.permutations(list(range(0, n)))) - - -def dist(i, j): -    return ((ll[i][0] - ll[j][0]) ** 2 + (ll[i][1] - ll[j][1]) ** 2) ** 0.5 - - +ll = [list(map(int, input().split())) for _ in range(n)] -for t in lt: -    for i in range(n - 1): -        d += dist(t[i], t[i + 1]) -print((d / len(lt))) +for x1, y1 in ll: +    for x2, y2 in ll: +        d += ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5 +print((d / n))