n=int(input())
if n==1:
    print(1)
    exit()
    
x=[0]*n
y=[0]*n

for i in range(n):
    x[i],y[i]=map(int,input().split())
dis=[]
for i in range(n):
    for j in range(n):
        if i==j:
            continue
        dis.append((x[j]-x[i],y[j]-y[i]))
        
from collections import Counter
c=Counter(dis).most_common()[0]
print(n-c[1]) 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 x=[0]*n x [0]*n [0] 0 n y=[0]*n y [0]*n [0] 0 n for i in range(n):
    x[i],y[i]=map(int,input().split()) i range(n) range n x[i],y[i]=map(int,input().split()) x[i] x i map(int,input().split()) map int input().split() ().split () input split y[i] y i dis=[] dis [] for i in range(n):
    for j in range(n):
        if i==j:
            continue
        dis.append((x[j]-x[i],y[j]-y[i]))
         i range(n) range n for j in range(n):
        if i==j:
            continue
        dis.append((x[j]-x[i],y[j]-y[i]))
         j range(n) range n if i==j:
            continue
         i==j i j continue dis.append((x[j]-x[i],y[j]-y[i])) dis.append dis append (x[j]-x[i],y[j]-y[i]) x[j]-x[i] x[j] x j x[i] x i y[j]-y[i] y[j] y j y[i] y i from collections import Counter c=Counter(dis).most_common()[0] c Counter(dis).most_common()[0] (dis).most_common() (dis).most_common (dis) Counter dis most_common 0 print(n-c[1]) print n-c[1] n c[1] c 1 c=Counter(dis).most_common()[0] Counter(dis).most_common()[0] c n=int(input()) int(input()) n x=[0]*n [0]*n x dis=[] [] dis y=[0]*n [0]*n y
n=int(input())
if n==1:
    print(1)
    exit()
    
x=[0]*n
y=[0]*n

for i in range(n):
    x[i],y[i]=map(int,input().split())
dis=[]
for i in range(n):
    for j in range(n):
        if i==j:
            continue
        dis.append((x[j]-x[i],y[j]-y[i]))
        
from collections import Counter
c=Counter(dis).most_common()[0]
print(n-c[1])
