from subprocess import*

call(('python3','-c',"""

from numpy import*

n,*x=[int32(t.split())for t in open(0)]

print((sum(j==int(j)for i in x for j in map(linalg.norm,i-x))-n[0])//2)

"""))
from numpy import*

n,*x=[int32(t.split())for t in open(0)]

print((sum(j==int(j)for i in x for j in map(linalg.norm,i-x))-n[0]>>1))
from subprocess import *

call(
    (
        "python3",
        "-c",
        """
from numpy import*
n,*x=[int32(t.split())for t in open(0)]
print((sum(j==int(j)for i in x for j in map(linalg.norm,i-x))-n[0])//2)
""",
    )
)

from numpy import *

n, *x = [int32(t.split()) for t in open(0)]
print((sum(j == int(j) for i in x for j in map(linalg.norm, i - x)) - n[0] >> 1))

-from subprocess import * +from numpy import * -call( -    ( -        "python3", -        "-c", -        """ -from numpy import* -n,*x=[int32(t.split())for t in open(0)] -print((sum(j==int(j)for i in x for j in map(linalg.norm,i-x))-n[0])//2) -""", -    ) -) +n, *x = [int32(t.split()) for t in open(0)] +print((sum(j == int(j) for i in x for j in map(linalg.norm, i - x)) - n[0] >> 1))