N = int(input())
xy = [list(map(int,input().split())) for _ in range(N)]
if N == 1:
  print(1)
  exit()
d = []
for i in range(N):
  for j in range(N):
    if i == j:
      continue
    X = xy[i][0] - xy[j][0]
    Y = xy[i][1] - xy[j][1]
    d.append([X,Y])
d.sort()
#print(d)
cnt = 1
tmp = 1
std = d[0]
for i in range(1,len(d)):
  if d[i] == std:
    tmp += 1
  else:
    tmp = 1
  std = d[i]
  cnt = max(cnt,tmp)
print(N - cnt) 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 xy = [list(map(int,input().split())) for _ in range(N)] xy [list(map(int,input().split())) for _ in range(N)] if N == 1:
  print(1)
  exit() N == 1 N 1 print(1) print 1 exit() exit d = [] d [] for i in range(N):
  for j in range(N):
    if i == j:
      continue
    X = xy[i][0] - xy[j][0]
    Y = xy[i][1] - xy[j][1]
    d.append([X,Y]) i range(N) range N for j in range(N):
    if i == j:
      continue
    X = xy[i][0] - xy[j][0]
    Y = xy[i][1] - xy[j][1]
    d.append([X,Y]) j range(N) range N if i == j:
      continue
     i == j i j continue X = xy[i][0] - xy[j][0] X xy[i][0] - xy[j][0] xy[i][0] [i] xy i 0 xy[j][0] [j] xy j 0 Y = xy[i][1] - xy[j][1] Y xy[i][1] - xy[j][1] xy[i][1] [i] xy i 1 xy[j][1] [j] xy j 1 d.append([X,Y]) d.append d append [X,Y] X Y d.sort() d.sort d sort cnt = 1 cnt 1 tmp = 1 tmp 1 std = d[0] std d[0] d 0 for i in range(1,len(d)):
  if d[i] == std:
    tmp += 1
  else:
    tmp = 1
  std = d[i]
  cnt = max(cnt,tmp) i range(1,len(d)) range 1 len(d) len d if d[i] == std:
    tmp += 1
  else:
    tmp = 1
   d[i] == std d[i] d i std tmp += 1 tmp 1 tmp = 1 tmp 1 std = d[i] std d[i] d i cnt = max(cnt,tmp) cnt max(cnt,tmp) max cnt tmp print(N - cnt) print N - cnt N cnt Y = xy[i][1] - xy[j][1] xy[i][1] - xy[j][1] Y tmp = 1 1 tmp N = int(input()) int(input()) N std = d[i] d[i] std cnt = max(cnt,tmp) max(cnt,tmp) cnt xy = [list(map(int,input().split())) for _ in range(N)] [list(map(int,input().split())) for _ in range(N)] xy tmp = 1 1 tmp std = d[0] d[0] std tmp += 1 1 tmp X = xy[i][0] - xy[j][0] xy[i][0] - xy[j][0] X cnt = 1 1 cnt d = [] [] d
N = int(input())
xy = [list(map(int,input().split())) for _ in range(N)]
if N == 1:
  print(1)
  exit()
d = []
for i in range(N):
  for j in range(N):
    if i == j:
      continue
    X = xy[i][0] - xy[j][0]
    Y = xy[i][1] - xy[j][1]
    d.append([X,Y])
d.sort()
#print(d)
cnt = 1
tmp = 1
std = d[0]
for i in range(1,len(d)):
  if d[i] == std:
    tmp += 1
  else:
    tmp = 1
  std = d[i]
  cnt = max(cnt,tmp)
print(N - cnt)