n= int(input())
if n == 1:
  print(1)
  exit()
ab = [list(map(int,input().split())) for _ in range(n)]
pq = {}
for i in range(n-1):
  for j in range(i+1,n):
    a1,b1 = ab[i]
    a2,b2 = ab[j]
    p = a1-a2
    q = b1-b2
    if p<0 or p==0 and q<0:
      p = -p
      q = -q
    if (p,q) in pq:
      pq[(p,q)] += 1
    else:
      pq[(p,q)] = 1
print(n-max(pq.values())) n= int(input()) n int(input()) int input() input if n == 1:
  print(1)
  exit() n == 1 n 1 print(1) print 1 exit() exit list(map(int,input().split())) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split ab = [list(map(int,input().split())) for _ in range(n)] ab [list(map(int,input().split())) for _ in range(n)] pq = {} pq {} for i in range(n-1):
  for j in range(i+1,n):
    a1,b1 = ab[i]
    a2,b2 = ab[j]
    p = a1-a2
    q = b1-b2
    if p<0 or p==0 and q<0:
      p = -p
      q = -q
    if (p,q) in pq:
      pq[(p,q)] += 1
    else:
      pq[(p,q)] = 1 i range(n-1) range n-1 n 1 for j in range(i+1,n):
    a1,b1 = ab[i]
    a2,b2 = ab[j]
    p = a1-a2
    q = b1-b2
    if p<0 or p==0 and q<0:
      p = -p
      q = -q
    if (p,q) in pq:
      pq[(p,q)] += 1
    else:
      pq[(p,q)] = 1 j range(i+1,n) range i+1 i 1 n a1,b1 = ab[i] a1 ab[i] ab i b1 a2,b2 = ab[j] a2 ab[j] ab j b2 p = a1-a2 p a1-a2 a1 a2 q = b1-b2 q b1-b2 b1 b2 if p<0 or p==0 and q<0:
      p = -p
      q = -q
     p<0 or p==0 and q<0 p<0 p 0 p==0 and q<0 p==0 p 0 q<0 q 0 p = -p p -p p q = -q q -q q if (p,q) in pq:
      pq[(p,q)] += 1
    else:
      pq[(p,q)] = 1 (p,q) in pq (p,q) p q pq pq[(p,q)] += 1 pq[(p,q)] pq (p,q) p q 1 pq[(p,q)] = 1 pq[(p,q)] pq (p,q) p q 1 print(n-max(pq.values())) print n-max(pq.values()) n max(pq.values()) max pq.values() pq.values pq values b1 = ab[i] ab[i] b1 pq = {} {} pq n= int(input()) int(input()) n q = -q -q q p = -p -p p b2 = ab[j] ab[j] b2 a1,b1 = ab[i] ab[i] a1 a2,b2 = ab[j] ab[j] a2 ab = [list(map(int,input().split())) for _ in range(n)] [list(map(int,input().split())) for _ in range(n)] ab p = a1-a2 a1-a2 p q = b1-b2 b1-b2 q
n= int(input())
if n == 1:
  print(1)
  exit()
ab = [list(map(int,input().split())) for _ in range(n)]
pq = {}
for i in range(n-1):
  for j in range(i+1,n):
    a1,b1 = ab[i]
    a2,b2 = ab[j]
    p = a1-a2
    q = b1-b2
    if p<0 or p==0 and q<0:
      p = -p
      q = -q
    if (p,q) in pq:
      pq[(p,q)] += 1
    else:
      pq[(p,q)] = 1
print(n-max(pq.values()))