n=int(eval(input()))

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



d=0

for i in range(n):

    for j in range(n):

        d+=((xy[i][0]-xy[j][0])**2+(xy[i][1]-xy[j][1])**2)**0.5

print((d/n))



n=int(eval(input()))

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



def dis(a,b):

    d=(a[0]-b[0])**2+(a[1]-b[1])**2

    return d**0.5



ans=0

from itertools import combinations

# listから２つ選ぶ組み合わせ

for a,b in combinations(xy, 2):

    ans+=dis(a,b)

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

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


def dis(a, b):
    d = (a[0] - b[0]) ** 2 + (a[1] - b[1]) ** 2
    return d**0.5


ans = 0
from itertools import combinations

# listから２つ選ぶ組み合わせ
for a, b in combinations(xy, 2):
    ans += dis(a, b)
print((2 * ans / n))

-d = 0 -for i in range(n): -    for j in range(n): -        d += ((xy[i][0] - xy[j][0]) ** 2 + (xy[i][1] - xy[j][1]) ** 2) ** 0.5 -print((d / n)) + + +def dis(a, b): +    d = (a[0] - b[0]) ** 2 + (a[1] - b[1]) ** 2 +    return d**0.5 + + +ans = 0 +from itertools import combinations + +# listから２つ選ぶ組み合わせ +for a, b in combinations(xy, 2): +    ans += dis(a, b) +print((2 * ans / n))