def f(a, b): return (X[a] - X[b])**2 + (Y[a] - Y[b])**2 N = int(input()) X, Y = [0] * N, [0] * N for i in range(N): X[i], Y[i] = map(int, input().split()) L = [] for i in range(N): for j in range(i + 1, N): L.append((f(i, j), i, j)) L.sort() S = set() ans = 0 for _, i, j in L: if i == 0: if j in S: continue else: ans += 1 S.add(j) else: if i not in S and j not in S: S.add(i) S.add(j) print(ans)