from itertools import permutations

n=int(eval(input()))

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

c=0.0

for i in x:

  a=i[0][0]

  b=i[0][1]

  for j in i[1:]:

    c+=((j[0]-a)**2+(j[1]-b)**2)**.5

    a=j[0]

    b=j[1]

print((c/len(x)))
n=int(eval(input()))

x=[]

y=[]

for i in range(n):

  a,b=list(map(int,input().split()))

  x.append(a)

  y.append(b)

sm=0

for i in range(n):

  for j in range(n):

    sm+=((x[i]-x[j])**2+(y[i]-y[j])**2)**0.5

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

n = int(eval(input()))
x = list(permutations([list(map(int, input().split())) for _ in range(n)]))
c = 0.0
for i in x:
    a = i[0][0]
    b = i[0][1]
    for j in i[1:]:
        c += ((j[0] - a) ** 2 + (j[1] - b) ** 2) ** 0.5
        a = j[0]
        b = j[1]
print((c / len(x)))

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

-from itertools import permutations - -x = list(permutations([list(map(int, input().split())) for _ in range(n)])) -c = 0.0 -for i in x: -    a = i[0][0] -    b = i[0][1] -    for j in i[1:]: -        c += ((j[0] - a) ** 2 + (j[1] - b) ** 2) ** 0.5 -        a = j[0] -        b = j[1] -print((c / len(x))) +x = [] +y = [] +for i in range(n): +    a, b = list(map(int, input().split())) +    x.append(a) +    y.append(b) +sm = 0 +for i in range(n): +    for j in range(n): +        sm += ((x[i] - x[j]) ** 2 + (y[i] - y[j]) ** 2) ** 0.5 +print((sm / n))