n=int(input())
l=[]
if n==1:
  print(1)
else:
  for i in range(n):
    x,y=map(int,input().split())
    l.append([x,y])

  dic={}
  for i in range(n):
    for j in range(n):
      if i==j:
        continue
      dx,dy = l[j][0]-l[i][0],l[j][1]-l[i][1]
      if (dx,dy) not in dic:
        dic[dx,dy]=1
      else:
        dic[dx,dy]+=1

  dic=sorted(dic.items(),key=lambda x:x[1],reverse=True)
  print(n-dic[0][1]) n=int(input()) n int(input()) int input() input l=[] l [] if n==1:
  print(1)
else:
  for i in range(n):
    x,y=map(int,input().split())
    l.append([x,y])

  dic={}
  for i in range(n):
    for j in range(n):
      if i==j:
        continue
      dx,dy = l[j][0]-l[i][0],l[j][1]-l[i][1]
      if (dx,dy) not in dic:
        dic[dx,dy]=1
      else:
        dic[dx,dy]+=1

  dic=sorted(dic.items(),key=lambda x:x[1],reverse=True)
  print(n-dic[0][1]) n==1 n 1 print(1) print 1 for i in range(n):
    x,y=map(int,input().split())
    l.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 l.append([x,y]) l.append l append [x,y] x y dic={} dic {} for i in range(n):
    for j in range(n):
      if i==j:
        continue
      dx,dy = l[j][0]-l[i][0],l[j][1]-l[i][1]
      if (dx,dy) not in dic:
        dic[dx,dy]=1
      else:
        dic[dx,dy]+=1

   i range(n) range n for j in range(n):
      if i==j:
        continue
      dx,dy = l[j][0]-l[i][0],l[j][1]-l[i][1]
      if (dx,dy) not in dic:
        dic[dx,dy]=1
      else:
        dic[dx,dy]+=1

   j range(n) range n if i==j:
        continue
       i==j i j continue dx,dy = l[j][0]-l[i][0],l[j][1]-l[i][1] dx l[j][0]-l[i][0] l[j][0] [j] l j 0 l[i][0] [i] l i 0 dy l[j][1]-l[i][1] l[j][1] [j] l j 1 l[i][1] [i] l i 1 if (dx,dy) not in dic:
        dic[dx,dy]=1
      else:
        dic[dx,dy]+=1

   (dx,dy) not in dic (dx,dy) dx dy dic dic[dx,dy]=1 dic[dx,dy] dic dx 1 dic[dx,dy]+=1 dic[dx,dy] dic dx 1 dic=sorted(dic.items(),key=lambda x:x[1],reverse=True) dic sorted(dic.items(),key=lambda x:x[1],reverse=True) sorted dic.items() dic.items dic items key=lambda x:x[1] key lambda x:x[1] x[1] x 1 x reverse=True reverse True print(n-dic[0][1]) print n-dic[0][1] n dic[0][1] [0] dic 0 1 l=[] [] l y=map(int,input().split()) map(int,input().split()) y dx,dy = l[j][0]-l[i][0],l[j][1]-l[i][1] l[j][0]-l[i][0] dx dic={} {} dic dic=sorted(dic.items(),key=lambda x:x[1],reverse=True) sorted(dic.items(),key=lambda x:x[1],reverse=True) dic x,y=map(int,input().split()) map(int,input().split()) x dy = l[j][0]-l[i][0],l[j][1]-l[i][1] l[j][1]-l[i][1] dy n=int(input()) int(input()) n
n=int(input())
l=[]
if n==1:
  print(1)
else:
  for i in range(n):
    x,y=map(int,input().split())
    l.append([x,y])

  dic={}
  for i in range(n):
    for j in range(n):
      if i==j:
        continue
      dx,dy = l[j][0]-l[i][0],l[j][1]-l[i][1]
      if (dx,dy) not in dic:
        dic[dx,dy]=1
      else:
        dic[dx,dy]+=1

  dic=sorted(dic.items(),key=lambda x:x[1],reverse=True)
  print(n-dic[0][1])
