from collections import deque from operator import itemgetter import sys input=sys.stdin.readline def main(): N=int(input()) P=[0]*N for i in range(N): P[i]=tuple(map(int,input().split())) Q=[] k=0 for i in range(N): for j in range(i+1,N): a,b=P[i][0]-P[j][0],P[i][1]-P[j][1] Q.append((a*a+b*b,j,i)) Q.sort(key=itemgetter(0)) Q=deque(Q) Flag=[1]*N X=0 for _,j,i in Q: if not(Flag[i] and Flag[j]): continue Flag[j]=0 if i!=0: Flag[i]=0 else: X+=1 return X if __name__=="__main__": print(main())