import itertools
n = int(input())
xy = []
for i in range(n):
  x,y = map(int, input().split())
  xy.append([x,y])

a={}
for v in itertools.combinations(xy,2):
  z = list(v)
  z.sort()
  x = z[1][0]-z[0][0]
  y = z[1][1]-z[0][1]
  if (x,y) not in a:
    a[(x,y)] = 1
  else:
    a[(x,y)] += 1
if n == 1:
  print (1)
else:
  print (n-max(a.values())) import itertools itertools n = int(input()) n int(input()) int input() input xy = [] xy [] for i in range(n):
  x,y = map(int, input().split())
  xy.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 xy.append([x,y]) xy.append xy append [x,y] x y a={} a {} for v in itertools.combinations(xy,2):
  z = list(v)
  z.sort()
  x = z[1][0]-z[0][0]
  y = z[1][1]-z[0][1]
  if (x,y) not in a:
    a[(x,y)] = 1
  else:
    a[(x,y)] += 1 v itertools.combinations(xy,2) itertools.combinations itertools combinations xy 2 z = list(v) z list(v) list v z.sort() z.sort z sort x = z[1][0]-z[0][0] x z[1][0]-z[0][0] z[1][0] [1] z 1 0 z[0][0] [0] z 0 0 y = z[1][1]-z[0][1] y z[1][1]-z[0][1] z[1][1] [1] z 1 1 z[0][1] [0] z 0 1 if (x,y) not in a:
    a[(x,y)] = 1
  else:
    a[(x,y)] += 1 (x,y) not in a (x,y) x y a a[(x,y)] = 1 a[(x,y)] a (x,y) x y 1 a[(x,y)] += 1 a[(x,y)] a (x,y) x y 1 if n == 1:
  print (1)
else:
  print (n-max(a.values())) n == 1 n 1 print (1) print 1 print (n-max(a.values())) print n-max(a.values()) n max(a.values()) max a.values() a.values a values a={} {} a y = z[1][1]-z[0][1] z[1][1]-z[0][1] y y = map(int, input().split()) map(int, input().split()) y z = list(v) list(v) z n = int(input()) int(input()) n x,y = map(int, input().split()) map(int, input().split()) x xy = [] [] xy x = z[1][0]-z[0][0] z[1][0]-z[0][0] x
import itertools
n = int(input())
xy = []
for i in range(n):
  x,y = map(int, input().split())
  xy.append([x,y])

a={}
for v in itertools.combinations(xy,2):
  z = list(v)
  z.sort()
  x = z[1][0]-z[0][0]
  y = z[1][1]-z[0][1]
  if (x,y) not in a:
    a[(x,y)] = 1
  else:
    a[(x,y)] += 1
if n == 1:
  print (1)
else:
  print (n-max(a.values()))