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))
n=int(eval(input()))

x=[]

y=[]

for i in range(n):

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

  x.append(a)

  y.append(b)

ans=0

for i in range(n):

  for j in range(n):

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

print((ans/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)
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))

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

-sm = 0 +ans = 0 -        sm += ((x[i] - x[j]) ** 2 + (y[i] - y[j]) ** 2) ** 0.5 -print((sm / n)) +        ans += ((x[i] - x[j]) ** 2 + (y[i] - y[j]) ** 2) ** 0.5 +print((ans / n))