import itertools
n = int(input())
xy = []

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


a,b = [],[]
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]
  a.append([x,y])
  if [x,y] in b:
    continue
  b.append([x,y])

c = 0
for i in b:
  c = max(c,a.count(i))
print (n-c) 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,b = [],[] a [] b [] 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]
  a.append([x,y])
  if [x,y] in b:
    continue
  b.append([x,y]) 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 a.append([x,y]) a.append a append [x,y] x y if [x,y] in b:
    continue
   [x,y] in b [x,y] x y b continue b.append([x,y]) b.append b append [x,y] x y c = 0 c 0 for i in b:
  c = max(c,a.count(i)) i b c = max(c,a.count(i)) c max(c,a.count(i)) max c a.count(i) a.count a count i print (n-c) print n-c n c x = z[1][0]-z[0][0] z[1][0]-z[0][0] x y = map(int, input().split()) map(int, input().split()) y x,y = map(int, input().split()) map(int, input().split()) x n = int(input()) int(input()) n c = 0 0 c xy = [] [] xy c = max(c,a.count(i)) max(c,a.count(i)) c y = z[1][1]-z[0][1] z[1][1]-z[0][1] y b = [],[] [] b z = list(v) list(v) z a,b = [],[] [] a
import itertools
n = int(input())
xy = []

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


a,b = [],[]
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]
  a.append([x,y])
  if [x,y] in b:
    continue
  b.append([x,y])

c = 0
for i in b:
  c = max(c,a.count(i))
print (n-c)