from collections import Counter
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):
  for j in range(i+1,N):
    pq.append([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]])

print(N-Counter(map(lambda x:x[0]*10**10+x[1],pq)).most_common()[0][1]) from collections import Counter 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):
  for j in range(i+1,N):
    pq.append([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]]) i range(N) range N 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 print(N-Counter(map(lambda x:x[0]*10**10+x[1],pq)).most_common()[0][1]) print N-Counter(map(lambda x:x[0]*10**10+x[1],pq)).most_common()[0][1] N Counter(map(lambda x:x[0]*10**10+x[1],pq)).most_common()[0][1] [0] (map(lambda x:x[0]*10**10+x[1],pq)).most_common() (map(lambda x:x[0]*10**10+x[1],pq)).most_common (map(lambda x:x[0]*10**10+x[1],pq)) Counter map(lambda x:x[0]*10**10+x[1],pq) map lambda x:x[0]*10**10+x[1] x[0]*10**10+x[1] x[0]*10**10 x[0] x 0 10**10 10 10 x[1] x 1 x pq most_common 0 1 pq=[] [] pq N=int(input()) int(input()) N xy=[list(map(int,input().split())) for _ in range(N)] [list(map(int,input().split())) for _ in range(N)] xy
from collections import Counter
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):
  for j in range(i+1,N):
    pq.append([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]])

print(N-Counter(map(lambda x:x[0]*10**10+x[1],pq)).most_common()[0][1])