import collections

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

if N == 1:
  print(1)
  exit()

pq = []
for i in range(N):
  xi, yi = xy[i][0], xy[i][1]
  for j in range(i + 1, N):
    xj, yj = xy[j][0], xy[j][1]
    p, q = xj - xi, yj - yi
    pq.append((p, q))
#print(pq)

c = list(collections.Counter(pq).values())
c.sort()
print(N - c[-1]) import collections collections 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)] xy.sort() xy.sort xy sort if N == 1:
  print(1)
  exit() N == 1 N 1 print(1) print 1 exit() exit pq = [] pq [] for i in range(N):
  xi, yi = xy[i][0], xy[i][1]
  for j in range(i + 1, N):
    xj, yj = xy[j][0], xy[j][1]
    p, q = xj - xi, yj - yi
    pq.append((p, q))
#print(pq) i range(N) range N xi, yi = xy[i][0], xy[i][1] xi xy[i][0] [i] xy i 0 yi xy[i][1] [i] xy i 1 for j in range(i + 1, N):
    xj, yj = xy[j][0], xy[j][1]
    p, q = xj - xi, yj - yi
    pq.append((p, q))
#print(pq) j range(i + 1, N) range i + 1 i 1 N xj, yj = xy[j][0], xy[j][1] xj xy[j][0] [j] xy j 0 yj xy[j][1] [j] xy j 1 p, q = xj - xi, yj - yi p xj - xi xj xi q yj - yi yj yi pq.append((p, q)) pq.append pq append (p, q) p q c = list(collections.Counter(pq).values()) c list(collections.Counter(pq).values()) list collections.Counter(pq).values() collections.Counter(pq).values collections.Counter(pq) collections.Counter collections Counter pq values c.sort() c.sort c sort print(N - c[-1]) print N - c[-1] N c[-1] c -1 pq = [] [] pq q = xj - xi, yj - yi yj - yi q yi = xy[i][0], xy[i][1] xy[i][1] yi xy = [list(map(int, input().split())) for _ in range(N)] [list(map(int, input().split())) for _ in range(N)] xy c = list(collections.Counter(pq).values()) list(collections.Counter(pq).values()) c N = int(input()) int(input()) N xj, yj = xy[j][0], xy[j][1] xy[j][0] xj yj = xy[j][0], xy[j][1] xy[j][1] yj p, q = xj - xi, yj - yi xj - xi p xi, yi = xy[i][0], xy[i][1] xy[i][0] xi
import collections

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

if N == 1:
  print(1)
  exit()

pq = []
for i in range(N):
  xi, yi = xy[i][0], xy[i][1]
  for j in range(i + 1, N):
    xj, yj = xy[j][0], xy[j][1]
    p, q = xj - xi, yj - yi
    pq.append((p, q))
#print(pq)

c = list(collections.Counter(pq).values())
c.sort()
print(N - c[-1])