from math import ceil,sqrt from heapq import * N=int(input()) point=[tuple(map(int,input().split())) for _ in range(N)] d=set() res=0 G=[] for i in range(N): que=[] for j in range(N): if i==j: continue xi,yi=point[i] xj,yj=point[j] dist=ceil(sqrt((xi-xj)**2+(yi-yj)**2)) d.add(((dist+1)//2,min(i,j),max(i,j))) d=sorted(d) delete=set() for t,i,j in d: if i in delete or j in delete: continue if i!=0 and j!=0: delete.add(i) delete.add(j) elif i==0: delete.add(j) res+=1 elif j==0: delete.add(i) res+=1 print(res)