n=int(input()) X=[0]*n Y=[0]*n import sys input=sys.stdin.readline #文字列入力はするな! for i in range(n): x,y=map(int,input().split()) X[i]=x Y[i]=y ans=0 dis=[] cnt=0 for i in range(n-1): for j in range(i+1,n): xi,yi,xj,yj=X[i],Y[i],X[j],Y[j] dis[cnt].append(((xi-xj)**2+(yi-yj)**2,i,j)) cnt+=1 dis.sort() erase=[0]*(n) for i in range(len(dis)): d,p,q=dis[i] if p==0: if erase[q]==0: ans+=1 erase[q]=1 else: if erase[p]==erase[q]==0: erase[p] = erase[q]=1 print(ans)