from itertools import combinations
from collections import defaultdict

n = int(input())

xy = [0] * n
for i in range(n):
    xy[i] = list(map(int, input().split()))

conter = defaultdict(int)
for com in combinations(range(n), 2):
    x1, y1 = xy[com[0]]
    x2, y2 = xy[com[1]]
    conter[(x2-x1, y2-y1)] += 1
    conter[(x1-x2, y1-y2)] += 1

ans = 0
for k, v in conter.items():
    ans = max(ans, v)

print(n - ans) from itertools import combinations from collections import defaultdict n = int(input()) n int(input()) int input() input xy = [0] * n xy [0] * n [0] 0 n for i in range(n):
    xy[i] = list(map(int, input().split())) i range(n) range n xy[i] = list(map(int, input().split())) xy[i] xy i list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split conter = defaultdict(int) conter defaultdict(int) defaultdict int for com in combinations(range(n), 2):
    x1, y1 = xy[com[0]]
    x2, y2 = xy[com[1]]
    conter[(x2-x1, y2-y1)] += 1
    conter[(x1-x2, y1-y2)] += 1 com combinations(range(n), 2) combinations range(n) range n 2 x1, y1 = xy[com[0]] x1 xy[com[0]] xy com[0] com 0 y1 x2, y2 = xy[com[1]] x2 xy[com[1]] xy com[1] com 1 y2 conter[(x2-x1, y2-y1)] += 1 conter[(x2-x1, y2-y1)] conter (x2-x1, y2-y1) x2-x1 x2 x1 y2-y1 y2 y1 1 conter[(x1-x2, y1-y2)] += 1 conter[(x1-x2, y1-y2)] conter (x1-x2, y1-y2) x1-x2 x1 x2 y1-y2 y1 y2 1 ans = 0 ans 0 for k, v in conter.items():
    ans = max(ans, v) k v conter.items() conter.items conter items ans = max(ans, v) ans max(ans, v) max ans v print(n - ans) print n - ans n ans ans = max(ans, v) max(ans, v) ans y1 = xy[com[0]] xy[com[0]] y1 y2 = xy[com[1]] xy[com[1]] y2 n = int(input()) int(input()) n xy = [0] * n [0] * n xy x1, y1 = xy[com[0]] xy[com[0]] x1 ans = 0 0 ans conter = defaultdict(int) defaultdict(int) conter x2, y2 = xy[com[1]] xy[com[1]] x2
from itertools import combinations
from collections import defaultdict

n = int(input())

xy = [0] * n
for i in range(n):
    xy[i] = list(map(int, input().split()))

conter = defaultdict(int)
for com in combinations(range(n), 2):
    x1, y1 = xy[com[0]]
    x2, y2 = xy[com[1]]
    conter[(x2-x1, y2-y1)] += 1
    conter[(x1-x2, y1-y2)] += 1

ans = 0
for k, v in conter.items():
    ans = max(ans, v)

print(n - ans)
