n=int(eval(input()))



x=[0]*n

y=[0]*n



for i in range(n):

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



dist=0

for i in range(n):

    for j in range(n):

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

        

print((dist/n))

n=int(eval(input()))

x=[]

y=[]

for i in range(n):

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

  x.append(a)

  y.append(b)



def fac(n):

  if n==0:

    return 1

  if n==1:

    return 1

  return n*fac(n-1)



ans=0

for i in range(n):

  for j in range(n):

    tmp=(((x[i]-x[j])**2+(y[i]-y[j])**2)**.5)

    ans+=tmp

   



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

n = int(eval(input()))
x = []
y = []
for i in range(n):
    a, b = list(map(int, input().split()))
    x.append(a)
    y.append(b)


def fac(n):
    if n == 0:
        return 1
    if n == 1:
        return 1
    return n * fac(n - 1)


ans = 0
for i in range(n):
    for j in range(n):
        tmp = ((x[i] - x[j]) ** 2 + (y[i] - y[j]) ** 2) ** 0.5
        ans += tmp
print((ans / n))

-x = [0] * n -y = [0] * n +x = [] +y = [] -    x[i], y[i] = list(map(int, input().split())) -dist = 0 +    a, b = list(map(int, input().split())) +    x.append(a) +    y.append(b) + + +def fac(n): +    if n == 0: +        return 1 +    if n == 1: +        return 1 +    return n * fac(n - 1) + + +ans = 0 -        dist += ((x[i] - x[j]) ** 2 + (y[i] - y[j]) ** 2) ** 0.5 -print((dist / n)) +        tmp = ((x[i] - x[j]) ** 2 + (y[i] - y[j]) ** 2) ** 0.5 +        ans += tmp +print((ans / n))