from collections import defaultdict
from typing import Counter

N = int(input())
XY = [list(map(int, input().split())) for _ in range(N)]
cnt = defaultdict(Counter)

ans = 0

for i in range(N):
    for j in range(N):
        if i == j:
            continue
        a = XY[i][0]-XY[j][0]
        b = XY[i][1]-XY[j][1]
        cnt[a][b] += 1
        ans = max(cnt[a][b], ans)

print(N-ans) from collections import defaultdict from typing import Counter 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(Counter) cnt defaultdict(Counter) defaultdict Counter ans = 0 ans 0 for i in range(N):
    for j in range(N):
        if i == j:
            continue
        a = XY[i][0]-XY[j][0]
        b = XY[i][1]-XY[j][1]
        cnt[a][b] += 1
        ans = max(cnt[a][b], ans) i range(N) range N for j in range(N):
        if i == j:
            continue
        a = XY[i][0]-XY[j][0]
        b = XY[i][1]-XY[j][1]
        cnt[a][b] += 1
        ans = max(cnt[a][b], ans) j range(N) range N if i == j:
            continue
         i == j i j continue a = XY[i][0]-XY[j][0] a XY[i][0]-XY[j][0] XY[i][0] [i] XY i 0 XY[j][0] [j] XY j 0 b = XY[i][1]-XY[j][1] b XY[i][1]-XY[j][1] XY[i][1] [i] XY i 1 XY[j][1] [j] XY j 1 cnt[a][b] += 1 cnt[a][b] [a] cnt a b 1 ans = max(cnt[a][b], ans) ans max(cnt[a][b], ans) max cnt[a][b] [a] cnt a b ans print(N-ans) print N-ans N ans ans = 0 0 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 a = XY[i][0]-XY[j][0] XY[i][0]-XY[j][0] a b = XY[i][1]-XY[j][1] XY[i][1]-XY[j][1] b ans = max(cnt[a][b], ans) max(cnt[a][b], ans) ans cnt = defaultdict(Counter) defaultdict(Counter) cnt
from collections import defaultdict
from typing import Counter

N = int(input())
XY = [list(map(int, input().split())) for _ in range(N)]
cnt = defaultdict(Counter)

ans = 0

for i in range(N):
    for j in range(N):
        if i == j:
            continue
        a = XY[i][0]-XY[j][0]
        b = XY[i][1]-XY[j][1]
        cnt[a][b] += 1
        ans = max(cnt[a][b], ans)

print(N-ans)