import sys

N=int(input())
if N<=2:
  print(1)
  sys.exit(0)

xylist=[]
for i in range(N):
  x,y=map(int,input().split())
  xylist.append((x,y))
xylist.sort()
#print(xylist)

pqset=set()
for i in range(N):
  x1,y1=xylist[i]
  for j in range(i+1,N):
    x2,y2=xylist[j]
    p=x2-x1
    q=y2-y1
    pqset.add((p,q))
#print(len(pqset))
    
answer=50
for p,q in pqset:
  comp_num=N
  for i in range(N):
    x1,y1=xylist[i]
    for j in range(i+1,N):
      x2,y2=xylist[j]
      if p==x2-x1 and q==y2-y1:
        comp_num-=1
        
  answer=min(answer,comp_num)
    
print(answer) import sys sys N=int(input()) N int(input()) int input() input if N<=2:
  print(1)
  sys.exit(0) N<=2 N 2 print(1) print 1 sys.exit(0) sys.exit sys exit 0 xylist=[] xylist [] for i in range(N):
  x,y=map(int,input().split())
  xylist.append((x,y)) i range(N) range N x,y=map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y xylist.append((x,y)) xylist.append xylist append (x,y) x y xylist.sort() xylist.sort xylist sort pqset=set() pqset set() set for i in range(N):
  x1,y1=xylist[i]
  for j in range(i+1,N):
    x2,y2=xylist[j]
    p=x2-x1
    q=y2-y1
    pqset.add((p,q))
#print(len(pqset))
     i range(N) range N x1,y1=xylist[i] x1 xylist[i] xylist i y1 for j in range(i+1,N):
    x2,y2=xylist[j]
    p=x2-x1
    q=y2-y1
    pqset.add((p,q))
#print(len(pqset))
     j range(i+1,N) range i+1 i 1 N x2,y2=xylist[j] x2 xylist[j] xylist j y2 p=x2-x1 p x2-x1 x2 x1 q=y2-y1 q y2-y1 y2 y1 pqset.add((p,q)) pqset.add pqset add (p,q) p q answer=50 answer 50 for p,q in pqset:
  comp_num=N
  for i in range(N):
    x1,y1=xylist[i]
    for j in range(i+1,N):
      x2,y2=xylist[j]
      if p==x2-x1 and q==y2-y1:
        comp_num-=1
        
  answer=min(answer,comp_num)
     p q pqset comp_num=N comp_num N for i in range(N):
    x1,y1=xylist[i]
    for j in range(i+1,N):
      x2,y2=xylist[j]
      if p==x2-x1 and q==y2-y1:
        comp_num-=1
        
   i range(N) range N x1,y1=xylist[i] x1 xylist[i] xylist i y1 for j in range(i+1,N):
      x2,y2=xylist[j]
      if p==x2-x1 and q==y2-y1:
        comp_num-=1
        
   j range(i+1,N) range i+1 i 1 N x2,y2=xylist[j] x2 xylist[j] xylist j y2 if p==x2-x1 and q==y2-y1:
        comp_num-=1
        
   p==x2-x1 and q==y2-y1 p==x2-x1 p x2-x1 x2 x1 q==y2-y1 q y2-y1 y2 y1 comp_num-=1 comp_num 1 answer=min(answer,comp_num) answer min(answer,comp_num) min answer comp_num print(answer) print answer y2=xylist[j] xylist[j] y2 q=y2-y1 y2-y1 q N=int(input()) int(input()) N x2,y2=xylist[j] xylist[j] x2 comp_num=N N comp_num y1=xylist[i] xylist[i] y1 xylist=[] [] xylist y1=xylist[i] xylist[i] y1 x1,y1=xylist[i] xylist[i] x1 comp_num-=1 1 comp_num x,y=map(int,input().split()) map(int,input().split()) x x1,y1=xylist[i] xylist[i] x1 y2=xylist[j] xylist[j] y2 y=map(int,input().split()) map(int,input().split()) y x2,y2=xylist[j] xylist[j] x2 answer=min(answer,comp_num) min(answer,comp_num) answer answer=50 50 answer pqset=set() set() pqset p=x2-x1 x2-x1 p
import sys

N=int(input())
if N<=2:
  print(1)
  sys.exit(0)

xylist=[]
for i in range(N):
  x,y=map(int,input().split())
  xylist.append((x,y))
xylist.sort()
#print(xylist)

pqset=set()
for i in range(N):
  x1,y1=xylist[i]
  for j in range(i+1,N):
    x2,y2=xylist[j]
    p=x2-x1
    q=y2-y1
    pqset.add((p,q))
#print(len(pqset))
    
answer=50
for p,q in pqset:
  comp_num=N
  for i in range(N):
    x1,y1=xylist[i]
    for j in range(i+1,N):
      x2,y2=xylist[j]
      if p==x2-x1 and q==y2-y1:
        comp_num-=1
        
  answer=min(answer,comp_num)
    
print(answer)