n=int(input())
L=[]
for _ in range(n):
    l=list(map(int,input().split()))
    L.append(l)
if n==1:
    print(1)
    exit()
pq=[]
ans=[]
for i in range(n-1):
    for j in range(i+1,n):
        x=L[i][0]-L[j][0]
        y=L[i][1]-L[j][1]
        if [x,y] in pq:
            ans[pq.index([x,y])] += 1
        elif [-x,-y] in pq:
            ans[pq.index([-x,-y])] += 1
        else:
            pq.append([x,y])
            ans.append(1)

print(n-max(ans)) n=int(input()) n int(input()) int input() input L=[] L [] for _ in range(n):
    l=list(map(int,input().split()))
    L.append(l) _ range(n) range n l=list(map(int,input().split())) l list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split L.append(l) L.append L append l if n==1:
    print(1)
    exit() n==1 n 1 print(1) print 1 exit() exit pq=[] pq [] ans=[] ans [] for i in range(n-1):
    for j in range(i+1,n):
        x=L[i][0]-L[j][0]
        y=L[i][1]-L[j][1]
        if [x,y] in pq:
            ans[pq.index([x,y])] += 1
        elif [-x,-y] in pq:
            ans[pq.index([-x,-y])] += 1
        else:
            pq.append([x,y])
            ans.append(1) i range(n-1) range n-1 n 1 for j in range(i+1,n):
        x=L[i][0]-L[j][0]
        y=L[i][1]-L[j][1]
        if [x,y] in pq:
            ans[pq.index([x,y])] += 1
        elif [-x,-y] in pq:
            ans[pq.index([-x,-y])] += 1
        else:
            pq.append([x,y])
            ans.append(1) j range(i+1,n) range i+1 i 1 n x=L[i][0]-L[j][0] x L[i][0]-L[j][0] L[i][0] [i] L i 0 L[j][0] [j] L j 0 y=L[i][1]-L[j][1] y L[i][1]-L[j][1] L[i][1] [i] L i 1 L[j][1] [j] L j 1 if [x,y] in pq:
            ans[pq.index([x,y])] += 1
        elif [-x,-y] in pq:
            ans[pq.index([-x,-y])] += 1
        else:
            pq.append([x,y])
            ans.append(1) [x,y] in pq [x,y] x y pq ans[pq.index([x,y])] += 1 ans[pq.index([x,y])] ans pq.index([x,y]) pq.index pq index [x,y] x y 1 elif [-x,-y] in pq:
            ans[pq.index([-x,-y])] += 1
         [-x,-y] in pq [-x,-y] -x x -y y pq ans[pq.index([-x,-y])] += 1 ans[pq.index([-x,-y])] ans pq.index([-x,-y]) pq.index pq index [-x,-y] -x x -y y 1 pq.append([x,y]) pq.append pq append [x,y] x y ans.append(1) ans.append ans append 1 print(n-max(ans)) print n-max(ans) n max(ans) max ans y=L[i][1]-L[j][1] L[i][1]-L[j][1] y x=L[i][0]-L[j][0] L[i][0]-L[j][0] x L=[] [] L n=int(input()) int(input()) n pq=[] [] pq ans=[] [] ans l=list(map(int,input().split())) list(map(int,input().split())) l
n=int(input())
L=[]
for _ in range(n):
    l=list(map(int,input().split()))
    L.append(l)
if n==1:
    print(1)
    exit()
pq=[]
ans=[]
for i in range(n-1):
    for j in range(i+1,n):
        x=L[i][0]-L[j][0]
        y=L[i][1]-L[j][1]
        if [x,y] in pq:
            ans[pq.index([x,y])] += 1
        elif [-x,-y] in pq:
            ans[pq.index([-x,-y])] += 1
        else:
            pq.append([x,y])
            ans.append(1)

print(n-max(ans))