N=int(input())

if N==1:
    print(1)
    exit()

P=[]
for i in range(N):
    P.append(list(map(int,input().split())))

c={}
for i in range(N):
    for j in range(N):
        if i!=j:
            p=P[j][0]-P[i][0]
            q=P[j][1]-P[i][1]
            temp=str(p)+"_"+str(q)
            if temp in c:
                c[temp]+=1
            else:
                c[temp]=1
c_num=[]
for j in c:
    c_num.append(c[j])

print(N-max(c_num))
 N=int(input()) N int(input()) int input() input if N==1:
    print(1)
    exit() N==1 N 1 print(1) print 1 exit() exit P=[] P [] for i in range(N):
    P.append(list(map(int,input().split()))) i range(N) range N P.append(list(map(int,input().split()))) P.append P append list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split c={} c {} for i in range(N):
    for j in range(N):
        if i!=j:
            p=P[j][0]-P[i][0]
            q=P[j][1]-P[i][1]
            temp=str(p)+"_"+str(q)
            if temp in c:
                c[temp]+=1
            else:
                c[temp]=1 i range(N) range N for j in range(N):
        if i!=j:
            p=P[j][0]-P[i][0]
            q=P[j][1]-P[i][1]
            temp=str(p)+"_"+str(q)
            if temp in c:
                c[temp]+=1
            else:
                c[temp]=1 j range(N) range N if i!=j:
            p=P[j][0]-P[i][0]
            q=P[j][1]-P[i][1]
            temp=str(p)+"_"+str(q)
            if temp in c:
                c[temp]+=1
            else:
                c[temp]=1 i!=j i j p=P[j][0]-P[i][0] p P[j][0]-P[i][0] P[j][0] [j] P j 0 P[i][0] [i] P i 0 q=P[j][1]-P[i][1] q P[j][1]-P[i][1] P[j][1] [j] P j 1 P[i][1] [i] P i 1 temp=str(p)+"_"+str(q) temp str(p)+"_"+str(q) str(p)+"_" str(p) str p "_" str(q) str q if temp in c:
                c[temp]+=1
            else:
                c[temp]=1 temp in c temp c c[temp]+=1 c[temp] c temp 1 c[temp]=1 c[temp] c temp 1 c_num=[] c_num [] for j in c:
    c_num.append(c[j]) j c c_num.append(c[j]) c_num.append c_num append c[j] c j print(N-max(c_num)) print N-max(c_num) N max(c_num) max c_num c={} {} c p=P[j][0]-P[i][0] P[j][0]-P[i][0] p q=P[j][1]-P[i][1] P[j][1]-P[i][1] q c_num=[] [] c_num temp=str(p)+"_"+str(q) str(p)+"_"+str(q) temp P=[] [] P N=int(input()) int(input()) N
N=int(input())

if N==1:
    print(1)
    exit()

P=[]
for i in range(N):
    P.append(list(map(int,input().split())))

c={}
for i in range(N):
    for j in range(N):
        if i!=j:
            p=P[j][0]-P[i][0]
            q=P[j][1]-P[i][1]
            temp=str(p)+"_"+str(q)
            if temp in c:
                c[temp]+=1
            else:
                c[temp]=1
c_num=[]
for j in c:
    c_num.append(c[j])

print(N-max(c_num))

