import sys input = sys.stdin.readline N = int(input()) xy = [tuple(map(int, input().split())) for _ in range(N)] l = [] for i in range(N): for j in range(i+1, N): xi, yi = xy[i] xj, yj = xy[j] l.append(((xi-xj)**2+(yi-yj)**2, i, j)) l.sort() s = set() ans = 0 for _, i, j in l: if i in s or j in s: continue if i==0: ans += 1 s.add(j) elif j==0: ans += 1 s.add(i) else: s.add(i) s.add(j) print(ans)