n = int(input())
X = [0]*n
Y = [0]*n
for i in range(n):
  X[i],Y[i] = map(int,input().split())  
  
dic = {}
for i in range(n):
  for j in range(n):
    if i!=j:
      x = X[i]-X[j]
      y = Y[i]-Y[j]
      dic[(x,y)] = dic.get((x,y),0) + 1

if n == 1:
  print(1)
else:  
  print(n-max(dic.values())) 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 dic = {} dic {} for i in range(n):
  for j in range(n):
    if i!=j:
      x = X[i]-X[j]
      y = Y[i]-Y[j]
      dic[(x,y)] = dic.get((x,y),0) + 1 i range(n) range n for j in range(n):
    if i!=j:
      x = X[i]-X[j]
      y = Y[i]-Y[j]
      dic[(x,y)] = dic.get((x,y),0) + 1 j range(n) range n if i!=j:
      x = X[i]-X[j]
      y = Y[i]-Y[j]
      dic[(x,y)] = dic.get((x,y),0) + 1 i!=j i j x = X[i]-X[j] x X[i]-X[j] X[i] X i X[j] X j y = Y[i]-Y[j] y Y[i]-Y[j] Y[i] Y i Y[j] Y j dic[(x,y)] = dic.get((x,y),0) + 1 dic[(x,y)] dic (x,y) x y dic.get((x,y),0) + 1 dic.get((x,y),0) dic.get dic get (x,y) x y 0 1 if n == 1:
  print(1)
else:  
  print(n-max(dic.values())) n == 1 n 1 print(1) print 1 print(n-max(dic.values())) print n-max(dic.values()) n max(dic.values()) max dic.values() dic.values dic values x = X[i]-X[j] X[i]-X[j] x y = Y[i]-Y[j] Y[i]-Y[j] y n = int(input()) int(input()) n Y = [0]*n [0]*n Y dic = {} {} dic X = [0]*n [0]*n X
n = int(input())
X = [0]*n
Y = [0]*n
for i in range(n):
  X[i],Y[i] = map(int,input().split())  
  
dic = {}
for i in range(n):
  for j in range(n):
    if i!=j:
      x = X[i]-X[j]
      y = Y[i]-Y[j]
      dic[(x,y)] = dic.get((x,y),0) + 1

if n == 1:
  print(1)
else:  
  print(n-max(dic.values()))