from collections import *
n=int(input())
x=[0]*n
y=[0]*n
for i in range(n):
  x[i],y[i]=map(int,input().split())
a=[]
for i in range(n):
  for j in range(n):
    if i==j:continue
    a+=[(x[i]-x[j],y[i]-y[j])]
c=list(Counter(a).values())
print(n-max(c) if c else n) from collections import * 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 a=[] a [] for i in range(n):
  for j in range(n):
    if i==j:continue
    a+=[(x[i]-x[j],y[i]-y[j])] i range(n) range n for j in range(n):
    if i==j:continue
    a+=[(x[i]-x[j],y[i]-y[j])] j range(n) range n if i==j:continue
     i==j i j a+=[(x[i]-x[j],y[i]-y[j])] a [(x[i]-x[j],y[i]-y[j])] (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 c=list(Counter(a).values()) c list(Counter(a).values()) list Counter(a).values() (a).values (a) Counter a values print(n-max(c) if c else n) print n-max(c) if c else n c n-max(c) n max(c) max c n x=[0]*n [0]*n x a=[] [] a n=int(input()) int(input()) n y=[0]*n [0]*n y c=list(Counter(a).values()) list(Counter(a).values()) c a+=[(x[i]-x[j],y[i]-y[j])] [(x[i]-x[j],y[i]-y[j])] a
from collections import *
n=int(input())
x=[0]*n
y=[0]*n
for i in range(n):
  x[i],y[i]=map(int,input().split())
a=[]
for i in range(n):
  for j in range(n):
    if i==j:continue
    a+=[(x[i]-x[j],y[i]-y[j])]
c=list(Counter(a).values())
print(n-max(c) if c else n)