from collections import defaultdict as de
X=de(int)
n=int(input())
a=sorted([list(map(int,input().split()))for i in range(n)])
for i in range(n):
    for j in range(i):
        X[(a[i][0]-a[j][0],a[i][1]-a[j][1])]+=1
print(n-max(X.values(),default=0)) from collections import defaultdict as de X=de(int) X de(int) de int n=int(input()) n int(input()) int input() input list(map(int,input().split()))for i in range(n) for i in range(n) i range(n) range n for i in range(n) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split a=sorted([list(map(int,input().split()))for i in range(n)]) a sorted([list(map(int,input().split()))for i in range(n)]) sorted [list(map(int,input().split()))for i in range(n)] for i in range(n):
    for j in range(i):
        X[(a[i][0]-a[j][0],a[i][1]-a[j][1])]+=1 i range(n) range n for j in range(i):
        X[(a[i][0]-a[j][0],a[i][1]-a[j][1])]+=1 j range(i) range i X[(a[i][0]-a[j][0],a[i][1]-a[j][1])]+=1 X[(a[i][0]-a[j][0],a[i][1]-a[j][1])] X (a[i][0]-a[j][0],a[i][1]-a[j][1]) a[i][0]-a[j][0] a[i][0] [i] a i 0 a[j][0] [j] a j 0 a[i][1]-a[j][1] a[i][1] [i] a i 1 a[j][1] [j] a j 1 1 print(n-max(X.values(),default=0)) print n-max(X.values(),default=0) n max(X.values(),default=0) max X.values() X.values X values default=0 default 0 X=de(int) de(int) X n=int(input()) int(input()) n a=sorted([list(map(int,input().split()))for i in range(n)]) sorted([list(map(int,input().split()))for i in range(n)]) a
from collections import defaultdict as de
X=de(int)
n=int(input())
a=sorted([list(map(int,input().split()))for i in range(n)])
for i in range(n):
    for j in range(i):
        X[(a[i][0]-a[j][0],a[i][1]-a[j][1])]+=1
print(n-max(X.values(),default=0))