from itertools import combinations
from collections import Counter
N = int(input())
xy = [list(map(int, input().split())) for _ in range(N)]

count = []
for ((x1,x2),(x3,x4)) in combinations(xy, 2):
    count.append((x1-x3,x2-x4))
    count.append((x3-x1,x4-x2))
    
c = Counter(count)
m = 0
for i in c.values():
    m = max(m, i)

if N == 1:
    print(1)
else:
    print(N-m) from itertools import combinations from collections 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)] count = [] count [] for ((x1,x2),(x3,x4)) in combinations(xy, 2):
    count.append((x1-x3,x2-x4))
    count.append((x3-x1,x4-x2))
     ((x1,x2),(x3,x4)) (x1,x2) x1 x2 (x3,x4) x3 x4 combinations(xy, 2) combinations xy 2 count.append((x1-x3,x2-x4)) count.append count append (x1-x3,x2-x4) x1-x3 x1 x3 x2-x4 x2 x4 count.append((x3-x1,x4-x2)) count.append count append (x3-x1,x4-x2) x3-x1 x3 x1 x4-x2 x4 x2 c = Counter(count) c Counter(count) Counter count m = 0 m 0 for i in c.values():
    m = max(m, i) i c.values() c.values c values m = max(m, i) m max(m, i) max m i if N == 1:
    print(1)
else:
    print(N-m) N == 1 N 1 print(1) print 1 print(N-m) print N-m N m N = int(input()) int(input()) N m = max(m, i) max(m, i) m xy = [list(map(int, input().split())) for _ in range(N)] [list(map(int, input().split())) for _ in range(N)] xy m = 0 0 m count = [] [] count c = Counter(count) Counter(count) c
from itertools import combinations
from collections import Counter
N = int(input())
xy = [list(map(int, input().split())) for _ in range(N)]

count = []
for ((x1,x2),(x3,x4)) in combinations(xy, 2):
    count.append((x1-x3,x2-x4))
    count.append((x3-x1,x4-x2))
    
c = Counter(count)
m = 0
for i in c.values():
    m = max(m, i)

if N == 1:
    print(1)
else:
    print(N-m)
