N = int(input())
co = [[int(i) for i in input().split()] for i in range(N)]
co = sorted(co)
d = {}
m = 0
for i in range(N):
    for j in range(i+1, N):
        a = co[i][0]-co[j][0]
        b = co[i][1]-co[j][1]
        if (a, b) in d:
            d[a,b] += 1
        else:
            d[a,b] = 1
for k in d.values():
    m = max(m, k)
print(N-m) N = int(input()) N int(input()) int input() input [int(i) for i in input().split()] for i in range(N) for i in range(N) i range(N) range N for i in range(N) [int(i) for i in input().split()] co = [[int(i) for i in input().split()] for i in range(N)] co [[int(i) for i in input().split()] for i in range(N)] co = sorted(co) co sorted(co) sorted co d = {} d {} m = 0 m 0 for i in range(N):
    for j in range(i+1, N):
        a = co[i][0]-co[j][0]
        b = co[i][1]-co[j][1]
        if (a, b) in d:
            d[a,b] += 1
        else:
            d[a,b] = 1 i range(N) range N for j in range(i+1, N):
        a = co[i][0]-co[j][0]
        b = co[i][1]-co[j][1]
        if (a, b) in d:
            d[a,b] += 1
        else:
            d[a,b] = 1 j range(i+1, N) range i+1 i 1 N a = co[i][0]-co[j][0] a co[i][0]-co[j][0] co[i][0] [i] co i 0 co[j][0] [j] co j 0 b = co[i][1]-co[j][1] b co[i][1]-co[j][1] co[i][1] [i] co i 1 co[j][1] [j] co j 1 if (a, b) in d:
            d[a,b] += 1
        else:
            d[a,b] = 1 (a, b) in d (a, b) a b d d[a,b] += 1 d[a,b] d a 1 d[a,b] = 1 d[a,b] d a 1 for k in d.values():
    m = max(m, k) k d.values() d.values d values m = max(m, k) m max(m, k) max m k print(N-m) print N-m N m co = sorted(co) sorted(co) co m = 0 0 m d = {} {} d a = co[i][0]-co[j][0] co[i][0]-co[j][0] a N = int(input()) int(input()) N co = [[int(i) for i in input().split()] for i in range(N)] [[int(i) for i in input().split()] for i in range(N)] co b = co[i][1]-co[j][1] co[i][1]-co[j][1] b m = max(m, k) max(m, k) m
N = int(input())
co = [[int(i) for i in input().split()] for i in range(N)]
co = sorted(co)
d = {}
m = 0
for i in range(N):
    for j in range(i+1, N):
        a = co[i][0]-co[j][0]
        b = co[i][1]-co[j][1]
        if (a, b) in d:
            d[a,b] += 1
        else:
            d[a,b] = 1
for k in d.values():
    m = max(m, k)
print(N-m)