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 = float('inf') T = [] 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 T.append((d, i, j)) T.sort() #print(T) used = set() ans = 0 for d, i, j in T: if i == 0: if j not in used: ans += 1 used.add(j) else: if i not in used and j not in used: used.add(i) used.add(j) print(ans)