n = int(input()) XY = [] for i in range(n): x, y = map(int, input().split()) XY.append((x, y)) if n == 1: print(0) exit() import math INF = 10*18 D = [[INF]*n for _ in range(n)] for i in range(n-1): x1, y1=XY[i] for j in range(i+1, n): x2,y2 = XY[j] d = math.hypot(x1-x2, y1-y2)/2 D[i][j] = d D[j][i] = d #print(D) ans = 0 used = set() for i in range(1, n): p = D[i][0] for j in range(1, n): if j in used: continue if D[i][j] < p: break else: ans += 1 used.add(i) print(ans)