n = int(input())
x = [0]*n
y = [0]*n
for i in range(n): x[i],y[i] = map(int,input().split())

d = {(0,0):0}
for i in range(n):
    for j in range(n):
        if i == j: continue
        dx = x[i]-x[j]
        dy = y[i]-y[j]
        d[(dx,dy)] = d.get((dx,dy),0) + 1
        
print(n-max(d.values())) n = int(input()) n int(input()) int input() input 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 d = {(0,0):0} d {(0,0):0} (0,0) (0,0) 0 0 0 for i in range(n):
    for j in range(n):
        if i == j: continue
        dx = x[i]-x[j]
        dy = y[i]-y[j]
        d[(dx,dy)] = d.get((dx,dy),0) + 1
         i range(n) range n for j in range(n):
        if i == j: continue
        dx = x[i]-x[j]
        dy = y[i]-y[j]
        d[(dx,dy)] = d.get((dx,dy),0) + 1
         j range(n) range n if i == j: continue
         i == j i j dx = x[i]-x[j] dx x[i]-x[j] x[i] x i x[j] x j dy = y[i]-y[j] dy y[i]-y[j] y[i] y i y[j] y j d[(dx,dy)] = d.get((dx,dy),0) + 1 d[(dx,dy)] d (dx,dy) dx dy d.get((dx,dy),0) + 1 d.get((dx,dy),0) d.get d get (dx,dy) dx dy 0 1 print(n-max(d.values())) print n-max(d.values()) n max(d.values()) max d.values() d.values d values y = [0]*n [0]*n y n = int(input()) int(input()) n x = [0]*n [0]*n x dx = x[i]-x[j] x[i]-x[j] dx dy = y[i]-y[j] y[i]-y[j] dy d = {(0,0):0} {(0,0):0} d
n = int(input())
x = [0]*n
y = [0]*n
for i in range(n): x[i],y[i] = map(int,input().split())

d = {(0,0):0}
for i in range(n):
    for j in range(n):
        if i == j: continue
        dx = x[i]-x[j]
        dy = y[i]-y[j]
        d[(dx,dy)] = d.get((dx,dy),0) + 1
        
print(n-max(d.values()))