N = int(input())
XYs = [list(map(int, input().split())) for _ in range(N)]

dic = {}
tmp = 0

for i in range(N):
  for j in range(N):
    if i == j:
      continue
    p = XYs[j][0] - XYs[i][0]
    q = XYs[j][1] - XYs[i][1]

    if "{}_{}".format(p,q) not in dic:
      dic["{}_{}".format(p,q)] = 1
    else:
      dic["{}_{}".format(p,q)] += 1
      
for k in dic:
  if tmp < dic[k]:
    tmp = dic[k]

print(N-tmp) N = int(input()) N int(input()) int input() input 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 XYs = [list(map(int, input().split())) for _ in range(N)] XYs [list(map(int, input().split())) for _ in range(N)] dic = {} dic {} tmp = 0 tmp 0 for i in range(N):
  for j in range(N):
    if i == j:
      continue
    p = XYs[j][0] - XYs[i][0]
    q = XYs[j][1] - XYs[i][1]

    if "{}_{}".format(p,q) not in dic:
      dic["{}_{}".format(p,q)] = 1
    else:
      dic["{}_{}".format(p,q)] += 1
       i range(N) range N for j in range(N):
    if i == j:
      continue
    p = XYs[j][0] - XYs[i][0]
    q = XYs[j][1] - XYs[i][1]

    if "{}_{}".format(p,q) not in dic:
      dic["{}_{}".format(p,q)] = 1
    else:
      dic["{}_{}".format(p,q)] += 1
       j range(N) range N if i == j:
      continue
     i == j i j continue p = XYs[j][0] - XYs[i][0] p XYs[j][0] - XYs[i][0] XYs[j][0] [j] XYs j 0 XYs[i][0] [i] XYs i 0 q = XYs[j][1] - XYs[i][1] q XYs[j][1] - XYs[i][1] XYs[j][1] [j] XYs j 1 XYs[i][1] [i] XYs i 1 if "{}_{}".format(p,q) not in dic:
      dic["{}_{}".format(p,q)] = 1
    else:
      dic["{}_{}".format(p,q)] += 1
       "{}_{}".format(p,q) not in dic "{}_{}".format(p,q) "{}_{}".format "{}_{}" format p q dic dic["{}_{}".format(p,q)] = 1 dic["{}_{}".format(p,q)] dic "{}_{}".format(p,q) "{}_{}".format "{}_{}" format p q 1 dic["{}_{}".format(p,q)] += 1 dic["{}_{}".format(p,q)] dic "{}_{}".format(p,q) "{}_{}".format "{}_{}" format p q 1 for k in dic:
  if tmp < dic[k]:
    tmp = dic[k] k dic if tmp < dic[k]:
    tmp = dic[k] tmp < dic[k] tmp dic[k] dic k tmp = dic[k] tmp dic[k] dic k print(N-tmp) print N-tmp N tmp p = XYs[j][0] - XYs[i][0] XYs[j][0] - XYs[i][0] p q = XYs[j][1] - XYs[i][1] XYs[j][1] - XYs[i][1] q tmp = dic[k] dic[k] tmp XYs = [list(map(int, input().split())) for _ in range(N)] [list(map(int, input().split())) for _ in range(N)] XYs dic = {} {} dic tmp = 0 0 tmp N = int(input()) int(input()) N
N = int(input())
XYs = [list(map(int, input().split())) for _ in range(N)]

dic = {}
tmp = 0

for i in range(N):
  for j in range(N):
    if i == j:
      continue
    p = XYs[j][0] - XYs[i][0]
    q = XYs[j][1] - XYs[i][1]

    if "{}_{}".format(p,q) not in dic:
      dic["{}_{}".format(p,q)] = 1
    else:
      dic["{}_{}".format(p,q)] += 1
      
for k in dic:
  if tmp < dic[k]:
    tmp = dic[k]

print(N-tmp)