
from collections import defaultdict

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

X.sort()
ctr = defaultdict(int)
for i in range(N - 1):
    for j in range(i + 1, N):
        p = X[i][0] - X[j][0]
        q = X[i][1] - X[j][1]
        ctr[(p, q)] += 1
        ctr[(-p, -q)] += 1

if N == 1:
    print(1)
else:
    print(N - max(ctr.values())) 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 X = [list(map(int, input().split())) for _ in range(N)] X [list(map(int, input().split())) for _ in range(N)] X.sort() X.sort X sort ctr = defaultdict(int) ctr defaultdict(int) defaultdict int for i in range(N - 1):
    for j in range(i + 1, N):
        p = X[i][0] - X[j][0]
        q = X[i][1] - X[j][1]
        ctr[(p, q)] += 1
        ctr[(-p, -q)] += 1 i range(N - 1) range N - 1 N 1 for j in range(i + 1, N):
        p = X[i][0] - X[j][0]
        q = X[i][1] - X[j][1]
        ctr[(p, q)] += 1
        ctr[(-p, -q)] += 1 j range(i + 1, N) range i + 1 i 1 N p = X[i][0] - X[j][0] p X[i][0] - X[j][0] X[i][0] [i] X i 0 X[j][0] [j] X j 0 q = X[i][1] - X[j][1] q X[i][1] - X[j][1] X[i][1] [i] X i 1 X[j][1] [j] X j 1 ctr[(p, q)] += 1 ctr[(p, q)] ctr (p, q) p q 1 ctr[(-p, -q)] += 1 ctr[(-p, -q)] ctr (-p, -q) -p p -q q 1 if N == 1:
    print(1)
else:
    print(N - max(ctr.values())) N == 1 N 1 print(1) print 1 print(N - max(ctr.values())) print N - max(ctr.values()) N max(ctr.values()) max ctr.values() ctr.values ctr values N = int(input()) int(input()) N ctr = defaultdict(int) defaultdict(int) ctr X = [list(map(int, input().split())) for _ in range(N)] [list(map(int, input().split())) for _ in range(N)] X p = X[i][0] - X[j][0] X[i][0] - X[j][0] p q = X[i][1] - X[j][1] X[i][1] - X[j][1] q

from collections import defaultdict

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

X.sort()
ctr = defaultdict(int)
for i in range(N - 1):
    for j in range(i + 1, N):
        p = X[i][0] - X[j][0]
        q = X[i][1] - X[j][1]
        ctr[(p, q)] += 1
        ctr[(-p, -q)] += 1

if N == 1:
    print(1)
else:
    print(N - max(ctr.values()))
