n=int(input())

xy=[tuple(map(int,input().split())) for i in range(n)]
pq=[]
for i in range(n):
  for j in range(n):
    if i==j:continue
    x1,y1=xy[i]
    x2,y2=xy[j]
    pq.append((x2-x1,y2-y1))

ans=n
for p,q in pq:
  t=0
  for x,y in xy:
    if (x+p,y+q) not in xy:t+=1
  ans=min(ans,t)
print(ans) n=int(input()) n int(input()) int input() input tuple(map(int,input().split())) for i in range(n) for i in range(n) i range(n) range n for i in range(n) tuple(map(int,input().split())) tuple map(int,input().split()) map int input().split() ().split () input split xy=[tuple(map(int,input().split())) for i in range(n)] xy [tuple(map(int,input().split())) for i in range(n)] pq=[] pq [] for i in range(n):
  for j in range(n):
    if i==j:continue
    x1,y1=xy[i]
    x2,y2=xy[j]
    pq.append((x2-x1,y2-y1)) i range(n) range n for j in range(n):
    if i==j:continue
    x1,y1=xy[i]
    x2,y2=xy[j]
    pq.append((x2-x1,y2-y1)) j range(n) range n if i==j:continue
     i==j i j x1,y1=xy[i] x1 xy[i] xy i y1 x2,y2=xy[j] x2 xy[j] xy j y2 pq.append((x2-x1,y2-y1)) pq.append pq append (x2-x1,y2-y1) x2-x1 x2 x1 y2-y1 y2 y1 ans=n ans n for p,q in pq:
  t=0
  for x,y in xy:
    if (x+p,y+q) not in xy:t+=1
  ans=min(ans,t) p q pq t=0 t 0 for x,y in xy:
    if (x+p,y+q) not in xy:t+=1
   x y xy if (x+p,y+q) not in xy:t+=1
   (x+p,y+q) not in xy (x+p,y+q) x+p x p y+q y q xy ans=min(ans,t) ans min(ans,t) min ans t print(ans) print ans n=int(input()) int(input()) n ans=n n ans y2=xy[j] xy[j] y2 ans=min(ans,t) min(ans,t) ans xy=[tuple(map(int,input().split())) for i in range(n)] [tuple(map(int,input().split())) for i in range(n)] xy x2,y2=xy[j] xy[j] x2 t=0 0 t x1,y1=xy[i] xy[i] x1 y1=xy[i] xy[i] y1 pq=[] [] pq
n=int(input())

xy=[tuple(map(int,input().split())) for i in range(n)]
pq=[]
for i in range(n):
  for j in range(n):
    if i==j:continue
    x1,y1=xy[i]
    x2,y2=xy[j]
    pq.append((x2-x1,y2-y1))

ans=n
for p,q in pq:
  t=0
  for x,y in xy:
    if (x+p,y+q) not in xy:t+=1
  ans=min(ans,t)
print(ans)
