n = int(input())
if n== 1:
  print(1)
  exit()
pos = []
diff = []
for _ in range(n):
  x,y = map(int,input().split())
  for px,py in pos:
    diff.append((x-px, y-py))
    diff.append((px-x, py-y))
  pos.append((x,y))
from collections import Counter
diff = Counter(diff).most_common()
x,y = diff[0][0]
count = diff[0][1]
if x== y == 0:
  x,y = diff[1][0]
  count = diff[1][1]
print(n-count)
 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 pos = [] pos [] diff = [] diff [] for _ in range(n):
  x,y = map(int,input().split())
  for px,py in pos:
    diff.append((x-px, y-py))
    diff.append((px-x, py-y))
  pos.append((x,y)) _ range(n) range n x,y = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y for px,py in pos:
    diff.append((x-px, y-py))
    diff.append((px-x, py-y))
   px py pos diff.append((x-px, y-py)) diff.append diff append (x-px, y-py) x-px x px y-py y py diff.append((px-x, py-y)) diff.append diff append (px-x, py-y) px-x px x py-y py y pos.append((x,y)) pos.append pos append (x,y) x y from collections import Counter diff = Counter(diff).most_common() diff Counter(diff).most_common() (diff).most_common (diff) Counter diff most_common x,y = diff[0][0] x diff[0][0] [0] diff 0 0 y count = diff[0][1] count diff[0][1] [0] diff 0 1 if x== y == 0:
  x,y = diff[1][0]
  count = diff[1][1] x== y == 0 x== y x y 0 x,y = diff[1][0] x diff[1][0] [1] diff 1 0 y count = diff[1][1] count diff[1][1] [1] diff 1 1 print(n-count) print n-count n count pos = [] [] pos x,y = map(int,input().split()) map(int,input().split()) x x,y = diff[1][0] diff[1][0] x y = diff[1][0] diff[1][0] y y = map(int,input().split()) map(int,input().split()) y y = diff[0][0] diff[0][0] y diff = Counter(diff).most_common() Counter(diff).most_common() diff count = diff[0][1] diff[0][1] count n = int(input()) int(input()) n diff = [] [] diff x,y = diff[0][0] diff[0][0] x count = diff[1][1] diff[1][1] count
n = int(input())
if n== 1:
  print(1)
  exit()
pos = []
diff = []
for _ in range(n):
  x,y = map(int,input().split())
  for px,py in pos:
    diff.append((x-px, y-py))
    diff.append((px-x, py-y))
  pos.append((x,y))
from collections import Counter
diff = Counter(diff).most_common()
x,y = diff[0][0]
count = diff[0][1]
if x== y == 0:
  x,y = diff[1][0]
  count = diff[1][1]
print(n-count)

