from collections import defaultdict

N = int(input())
xy = [list(map(int, input().split())) for i in range(N)]

d = defaultdict(int)
for i, (xi, yi) in enumerate(xy):
  for j, (xj, yj) in enumerate(xy):
    p, q = xi - xj, yi - yj
    d[(p, q)] += 1

d.pop((0, 0))
ans = N
for k in d:
  ans = min(ans, N-d[k])

print(ans) from collections import defaultdict N = int(input()) N int(input()) int input() input list(map(int, input().split())) for i in range(N) for i in range(N) i range(N) range N for i in range(N) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split xy = [list(map(int, input().split())) for i in range(N)] xy [list(map(int, input().split())) for i in range(N)] d = defaultdict(int) d defaultdict(int) defaultdict int for i, (xi, yi) in enumerate(xy):
  for j, (xj, yj) in enumerate(xy):
    p, q = xi - xj, yi - yj
    d[(p, q)] += 1 i (xi, yi) xi yi enumerate(xy) enumerate xy for j, (xj, yj) in enumerate(xy):
    p, q = xi - xj, yi - yj
    d[(p, q)] += 1 j (xj, yj) xj yj enumerate(xy) enumerate xy p, q = xi - xj, yi - yj p xi - xj xi xj q yi - yj yi yj d[(p, q)] += 1 d[(p, q)] d (p, q) p q 1 d.pop((0, 0)) d.pop d pop (0, 0) 0 0 ans = N ans N for k in d:
  ans = min(ans, N-d[k]) k d ans = min(ans, N-d[k]) ans min(ans, N-d[k]) min ans N-d[k] N d[k] d k print(ans) print ans ans = min(ans, N-d[k]) min(ans, N-d[k]) ans d = defaultdict(int) defaultdict(int) d q = xi - xj, yi - yj yi - yj q N = int(input()) int(input()) N xy = [list(map(int, input().split())) for i in range(N)] [list(map(int, input().split())) for i in range(N)] xy ans = N N ans p, q = xi - xj, yi - yj xi - xj p
from collections import defaultdict

N = int(input())
xy = [list(map(int, input().split())) for i in range(N)]

d = defaultdict(int)
for i, (xi, yi) in enumerate(xy):
  for j, (xj, yj) in enumerate(xy):
    p, q = xi - xj, yi - yj
    d[(p, q)] += 1

d.pop((0, 0))
ans = N
for k in d:
  ans = min(ans, N-d[k])

print(ans)