n = int(input())
p = [[0, 0] for _ in range(n)]
for i in range(n):
  p[i] = list(map(int, input().split()))
p.sort()

st = dict()
for i in range(n-1):
  for j in range(i+1, n):
    st[(p[j][0]-p[i][0], p[j][1]-p[i][1])] = st.get((p[j][0]-p[i][0], p[j][1]-p[i][1]), 0) + 1
  
mx = 0
for key in st:
  mx = max(mx, st[key])
  
print(n-mx) n = int(input()) n int(input()) int input() input [0, 0] for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) [0, 0] 0 0 p = [[0, 0] for _ in range(n)] p [[0, 0] for _ in range(n)] for i in range(n):
  p[i] = list(map(int, input().split())) i range(n) range n p[i] = list(map(int, input().split())) p[i] p i list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split p.sort() p.sort p sort st = dict() st dict() dict for i in range(n-1):
  for j in range(i+1, n):
    st[(p[j][0]-p[i][0], p[j][1]-p[i][1])] = st.get((p[j][0]-p[i][0], p[j][1]-p[i][1]), 0) + 1
   i range(n-1) range n-1 n 1 for j in range(i+1, n):
    st[(p[j][0]-p[i][0], p[j][1]-p[i][1])] = st.get((p[j][0]-p[i][0], p[j][1]-p[i][1]), 0) + 1
   j range(i+1, n) range i+1 i 1 n st[(p[j][0]-p[i][0], p[j][1]-p[i][1])] = st.get((p[j][0]-p[i][0], p[j][1]-p[i][1]), 0) + 1 st[(p[j][0]-p[i][0], p[j][1]-p[i][1])] st (p[j][0]-p[i][0], p[j][1]-p[i][1]) p[j][0]-p[i][0] p[j][0] [j] p j 0 p[i][0] [i] p i 0 p[j][1]-p[i][1] p[j][1] [j] p j 1 p[i][1] [i] p i 1 st.get((p[j][0]-p[i][0], p[j][1]-p[i][1]), 0) + 1 st.get((p[j][0]-p[i][0], p[j][1]-p[i][1]), 0) st.get st get (p[j][0]-p[i][0], p[j][1]-p[i][1]) p[j][0]-p[i][0] p[j][0] [j] p j 0 p[i][0] [i] p i 0 p[j][1]-p[i][1] p[j][1] [j] p j 1 p[i][1] [i] p i 1 0 1 mx = 0 mx 0 for key in st:
  mx = max(mx, st[key])
   key st mx = max(mx, st[key]) mx max(mx, st[key]) max mx st[key] st key print(n-mx) print n-mx n mx mx = 0 0 mx st = dict() dict() st n = int(input()) int(input()) n mx = max(mx, st[key]) max(mx, st[key]) mx p = [[0, 0] for _ in range(n)] [[0, 0] for _ in range(n)] p
n = int(input())
p = [[0, 0] for _ in range(n)]
for i in range(n):
  p[i] = list(map(int, input().split()))
p.sort()

st = dict()
for i in range(n-1):
  for j in range(i+1, n):
    st[(p[j][0]-p[i][0], p[j][1]-p[i][1])] = st.get((p[j][0]-p[i][0], p[j][1]-p[i][1]), 0) + 1
  
mx = 0
for key in st:
  mx = max(mx, st[key])
  
print(n-mx)