n = int(input())
x = [0] * n
y = [0] * n

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

table = {}

for i in range(n - 1):
    for j in range(i + 1, n):
        dx = x[i] - x[j]
        dy = y[i] - y[j]
        if (dx, dy) not in table:
            table[(dx, dy)] = 1
            table[(-dx, -dy)] = 1
        else:
            table[(dx, dy)] += 1
            table[(-dx, -dy)] += 1

m = 0

for key, value in table.items():
    m = max(m, value)

print(n - m) 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 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 table = {} table {} for i in range(n - 1):
    for j in range(i + 1, n):
        dx = x[i] - x[j]
        dy = y[i] - y[j]
        if (dx, dy) not in table:
            table[(dx, dy)] = 1
            table[(-dx, -dy)] = 1
        else:
            table[(dx, dy)] += 1
            table[(-dx, -dy)] += 1 i range(n - 1) range n - 1 n 1 for j in range(i + 1, n):
        dx = x[i] - x[j]
        dy = y[i] - y[j]
        if (dx, dy) not in table:
            table[(dx, dy)] = 1
            table[(-dx, -dy)] = 1
        else:
            table[(dx, dy)] += 1
            table[(-dx, -dy)] += 1 j range(i + 1, n) range i + 1 i 1 n 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 if (dx, dy) not in table:
            table[(dx, dy)] = 1
            table[(-dx, -dy)] = 1
        else:
            table[(dx, dy)] += 1
            table[(-dx, -dy)] += 1 (dx, dy) not in table (dx, dy) dx dy table table[(dx, dy)] = 1 table[(dx, dy)] table (dx, dy) dx dy 1 table[(-dx, -dy)] = 1 table[(-dx, -dy)] table (-dx, -dy) -dx dx -dy dy 1 table[(dx, dy)] += 1 table[(dx, dy)] table (dx, dy) dx dy 1 table[(-dx, -dy)] += 1 table[(-dx, -dy)] table (-dx, -dy) -dx dx -dy dy 1 m = 0 m 0 for key, value in table.items():
    m = max(m, value) key value table.items() table.items table items m = max(m, value) m max(m, value) max m value print(n - m) print n - m n m dy = y[i] - y[j] y[i] - y[j] dy m = 0 0 m x = [0] * n [0] * n x dx = x[i] - x[j] x[i] - x[j] dx n = int(input()) int(input()) n table = {} {} table m = max(m, value) max(m, value) m y = [0] * n [0] * n y
n = int(input())
x = [0] * n
y = [0] * n

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

table = {}

for i in range(n - 1):
    for j in range(i + 1, n):
        dx = x[i] - x[j]
        dy = y[i] - y[j]
        if (dx, dy) not in table:
            table[(dx, dy)] = 1
            table[(-dx, -dy)] = 1
        else:
            table[(dx, dy)] += 1
            table[(-dx, -dy)] += 1

m = 0

for key, value in table.items():
    m = max(m, value)

print(n - m)
