from collections import defaultdict

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

cnt = defaultdict(int)
for xi, yi in xy:
    for xj, yj in xy:
        cnt[(xi - xj, yi - yj)] += 1
cnt[(0, 0)] = 0
ans = n - max(cnt.values())
print(ans) from collections import defaultdict n = int(input()) n int(input()) int input() input list(map(int, input().split())) for _ in range(n) for _ in range(n) _ range(n) range n for _ 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 _ in range(n)] xy [list(map(int, input().split())) for _ in range(n)] cnt = defaultdict(int) cnt defaultdict(int) defaultdict int for xi, yi in xy:
    for xj, yj in xy:
        cnt[(xi - xj, yi - yj)] += 1 xi yi xy for xj, yj in xy:
        cnt[(xi - xj, yi - yj)] += 1 xj yj xy cnt[(xi - xj, yi - yj)] += 1 cnt[(xi - xj, yi - yj)] cnt (xi - xj, yi - yj) xi - xj xi xj yi - yj yi yj 1 cnt[(0, 0)] = 0 cnt[(0, 0)] cnt (0, 0) 0 0 0 ans = n - max(cnt.values()) ans n - max(cnt.values()) n max(cnt.values()) max cnt.values() cnt.values cnt values print(ans) print ans n = int(input()) int(input()) n xy = [list(map(int, input().split())) for _ in range(n)] [list(map(int, input().split())) for _ in range(n)] xy cnt = defaultdict(int) defaultdict(int) cnt ans = n - max(cnt.values()) n - max(cnt.values()) ans
from collections import defaultdict

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

cnt = defaultdict(int)
for xi, yi in xy:
    for xj, yj in xy:
        cnt[(xi - xj, yi - yj)] += 1
cnt[(0, 0)] = 0
ans = n - max(cnt.values())
print(ans)
