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

pq=[]
for i in range(n-1):
  for j in range(i+1,n):
    pq.append([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]])

cnt=0
for p,q in pq:
  t_cnt=0
  for x,y in xy:
    if [x+p,y+q] in xy:
      t_cnt+=1
  cnt=max(cnt,t_cnt)

print(n-cnt) n=int(input()) n int(input()) int input() input list(map(int,input().split())) for i in range(n) for i in range(n) i range(n) range n for i 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 i in range(n)] xy [list(map(int,input().split())) for i in range(n)] xy.sort() xy.sort xy sort pq=[] pq [] for i in range(n-1):
  for j in range(i+1,n):
    pq.append([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]]) i range(n-1) range n-1 n 1 for j in range(i+1,n):
    pq.append([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]]) j range(i+1,n) range i+1 i 1 n pq.append([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]]) pq.append pq append [xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]] xy[j][0]-xy[i][0] xy[j][0] [j] xy j 0 xy[i][0] [i] xy i 0 xy[j][1]-xy[i][1] xy[j][1] [j] xy j 1 xy[i][1] [i] xy i 1 cnt=0 cnt 0 for p,q in pq:
  t_cnt=0
  for x,y in xy:
    if [x+p,y+q] in xy:
      t_cnt+=1
  cnt=max(cnt,t_cnt) p q pq t_cnt=0 t_cnt 0 for x,y in xy:
    if [x+p,y+q] in xy:
      t_cnt+=1
   x y xy if [x+p,y+q] in xy:
      t_cnt+=1
   [x+p,y+q] in xy [x+p,y+q] x+p x p y+q y q xy t_cnt+=1 t_cnt 1 cnt=max(cnt,t_cnt) cnt max(cnt,t_cnt) max cnt t_cnt print(n-cnt) print n-cnt n cnt pq=[] [] pq cnt=max(cnt,t_cnt) max(cnt,t_cnt) cnt t_cnt+=1 1 t_cnt xy=[list(map(int,input().split())) for i in range(n)] [list(map(int,input().split())) for i in range(n)] xy n=int(input()) int(input()) n cnt=0 0 cnt t_cnt=0 0 t_cnt
n=int(input())
xy=[list(map(int,input().split())) for i in range(n)]
xy.sort()

pq=[]
for i in range(n-1):
  for j in range(i+1,n):
    pq.append([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]])

cnt=0
for p,q in pq:
  t_cnt=0
  for x,y in xy:
    if [x+p,y+q] in xy:
      t_cnt+=1
  cnt=max(cnt,t_cnt)

print(n-cnt)