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

v={}
for i in range(N):
    for j in range(N):
        if i==j:
            continue
        vect=[x[i][0]-x[j][0],x[i][1]-x[j][1]]
        vs=str(vect[0])+","+str(vect[1])
        if vs in v:
            v[vs]+=1
        else:
            v[vs]=1

VM=0
for m in v:
    VM=max(VM,v[m])
print(N-VM) 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 x=[list(map(int,input().split())) for _ in range(N)] x [list(map(int,input().split())) for _ in range(N)] v={} v {} for i in range(N):
    for j in range(N):
        if i==j:
            continue
        vect=[x[i][0]-x[j][0],x[i][1]-x[j][1]]
        vs=str(vect[0])+","+str(vect[1])
        if vs in v:
            v[vs]+=1
        else:
            v[vs]=1 i range(N) range N for j in range(N):
        if i==j:
            continue
        vect=[x[i][0]-x[j][0],x[i][1]-x[j][1]]
        vs=str(vect[0])+","+str(vect[1])
        if vs in v:
            v[vs]+=1
        else:
            v[vs]=1 j range(N) range N if i==j:
            continue
         i==j i j continue vect=[x[i][0]-x[j][0],x[i][1]-x[j][1]] vect [x[i][0]-x[j][0],x[i][1]-x[j][1]] x[i][0]-x[j][0] x[i][0] [i] x i 0 x[j][0] [j] x j 0 x[i][1]-x[j][1] x[i][1] [i] x i 1 x[j][1] [j] x j 1 vs=str(vect[0])+","+str(vect[1]) vs str(vect[0])+","+str(vect[1]) str(vect[0])+"," str(vect[0]) str vect[0] vect 0 "," str(vect[1]) str vect[1] vect 1 if vs in v:
            v[vs]+=1
        else:
            v[vs]=1 vs in v vs v v[vs]+=1 v[vs] v vs 1 v[vs]=1 v[vs] v vs 1 VM=0 VM 0 for m in v:
    VM=max(VM,v[m]) m v VM=max(VM,v[m]) VM max(VM,v[m]) max VM v[m] v m print(N-VM) print N-VM N VM VM=0 0 VM N=int(input()) int(input()) N vs=str(vect[0])+","+str(vect[1]) str(vect[0])+","+str(vect[1]) vs v={} {} v vect=[x[i][0]-x[j][0],x[i][1]-x[j][1]] [x[i][0]-x[j][0],x[i][1]-x[j][1]] vect x=[list(map(int,input().split())) for _ in range(N)] [list(map(int,input().split())) for _ in range(N)] x VM=max(VM,v[m]) max(VM,v[m]) VM
N=int(input())
x=[list(map(int,input().split())) for _ in range(N)]

v={}
for i in range(N):
    for j in range(N):
        if i==j:
            continue
        vect=[x[i][0]-x[j][0],x[i][1]-x[j][1]]
        vs=str(vect[0])+","+str(vect[1])
        if vs in v:
            v[vs]+=1
        else:
            v[vs]=1

VM=0
for m in v:
    VM=max(VM,v[m])
print(N-VM)