N=int(input())
x=[0]*N
y=[0]*N
for i in range(N):
  x[i],y[i] = map(int,input().split() )
d=dict()

maxi=0
for i in range(N-1):
  for j in range(i+1,N):
    if (x[j]-x[i],y[j]-y[i]) not in d:
      d[ (x[j]-x[i],y[j]-y[i]) ] =1
      d[ (x[i]-x[j],y[i]-y[j]) ] =1
    else:
      d[ (x[j]-x[i],y[j]-y[i]) ] +=1
      d[ (x[i]-x[j],y[i]-y[j]) ] +=1
#print(d)      

for p in d:
  maxi=max(maxi,d[p])
ans= (N-1-maxi)+1
print(ans) N=int(input()) N int(input()) int input() input x=[0]*N x [0]*N [0] 0 N y=[0]*N y [0]*N [0] 0 N for i in range(N):
  x[i],y[i] = map(int,input().split() ) i range(N) range N x[i],y[i] = map(int,input().split() ) x[i] x i map(int,input().split() ) map int input().split() ().split () input split y[i] y i d=dict() d dict() dict maxi=0 maxi 0 for i in range(N-1):
  for j in range(i+1,N):
    if (x[j]-x[i],y[j]-y[i]) not in d:
      d[ (x[j]-x[i],y[j]-y[i]) ] =1
      d[ (x[i]-x[j],y[i]-y[j]) ] =1
    else:
      d[ (x[j]-x[i],y[j]-y[i]) ] +=1
      d[ (x[i]-x[j],y[i]-y[j]) ] +=1
#print(d)       i range(N-1) range N-1 N 1 for j in range(i+1,N):
    if (x[j]-x[i],y[j]-y[i]) not in d:
      d[ (x[j]-x[i],y[j]-y[i]) ] =1
      d[ (x[i]-x[j],y[i]-y[j]) ] =1
    else:
      d[ (x[j]-x[i],y[j]-y[i]) ] +=1
      d[ (x[i]-x[j],y[i]-y[j]) ] +=1
#print(d)       j range(i+1,N) range i+1 i 1 N if (x[j]-x[i],y[j]-y[i]) not in d:
      d[ (x[j]-x[i],y[j]-y[i]) ] =1
      d[ (x[i]-x[j],y[i]-y[j]) ] =1
    else:
      d[ (x[j]-x[i],y[j]-y[i]) ] +=1
      d[ (x[i]-x[j],y[i]-y[j]) ] +=1
#print(d)       (x[j]-x[i],y[j]-y[i]) not in d (x[j]-x[i],y[j]-y[i]) x[j]-x[i] x[j] x j x[i] x i y[j]-y[i] y[j] y j y[i] y i d d[ (x[j]-x[i],y[j]-y[i]) ] =1 d[ (x[j]-x[i],y[j]-y[i]) ] d (x[j]-x[i],y[j]-y[i]) x[j]-x[i] x[j] x j x[i] x i y[j]-y[i] y[j] y j y[i] y i 1 d[ (x[i]-x[j],y[i]-y[j]) ] =1 d[ (x[i]-x[j],y[i]-y[j]) ] d (x[i]-x[j],y[i]-y[j]) x[i]-x[j] x[i] x i x[j] x j y[i]-y[j] y[i] y i y[j] y j 1 d[ (x[j]-x[i],y[j]-y[i]) ] +=1 d[ (x[j]-x[i],y[j]-y[i]) ] d (x[j]-x[i],y[j]-y[i]) x[j]-x[i] x[j] x j x[i] x i y[j]-y[i] y[j] y j y[i] y i 1 d[ (x[i]-x[j],y[i]-y[j]) ] +=1 d[ (x[i]-x[j],y[i]-y[j]) ] d (x[i]-x[j],y[i]-y[j]) x[i]-x[j] x[i] x i x[j] x j y[i]-y[j] y[i] y i y[j] y j 1 for p in d:
  maxi=max(maxi,d[p]) p d maxi=max(maxi,d[p]) maxi max(maxi,d[p]) max maxi d[p] d p ans= (N-1-maxi)+1 ans (N-1-maxi)+1 N-1-maxi N-1 N 1 maxi 1 print(ans) print ans y=[0]*N [0]*N y x=[0]*N [0]*N x maxi=0 0 maxi N=int(input()) int(input()) N d=dict() dict() d ans= (N-1-maxi)+1 (N-1-maxi)+1 ans maxi=max(maxi,d[p]) max(maxi,d[p]) maxi
N=int(input())
x=[0]*N
y=[0]*N
for i in range(N):
  x[i],y[i] = map(int,input().split() )
d=dict()

maxi=0
for i in range(N-1):
  for j in range(i+1,N):
    if (x[j]-x[i],y[j]-y[i]) not in d:
      d[ (x[j]-x[i],y[j]-y[i]) ] =1
      d[ (x[i]-x[j],y[i]-y[j]) ] =1
    else:
      d[ (x[j]-x[i],y[j]-y[i]) ] +=1
      d[ (x[i]-x[j],y[i]-y[j]) ] +=1
#print(d)      

for p in d:
  maxi=max(maxi,d[p])
ans= (N-1-maxi)+1
print(ans)
