from collections import defaultdict

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

if n == 1:
    print(1)
    exit()
for i in range(n):
    for j in range(n):
        if i != j:
            data[x[j] - x[i], y[j] - y[i]] += 1

print(n - max(data.values())) from collections import defaultdict n = int(input()) n int(input()) int input() input x, y = [0] * n, [0] * n x [0] * n [0] 0 n y [0] * n [0] 0 n data = defaultdict(int) data defaultdict(int) defaultdict int 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 if n == 1:
    print(1)
    exit() n == 1 n 1 print(1) print 1 exit() exit for i in range(n):
    for j in range(n):
        if i != j:
            data[x[j] - x[i], y[j] - y[i]] += 1 i range(n) range n for j in range(n):
        if i != j:
            data[x[j] - x[i], y[j] - y[i]] += 1 j range(n) range n if i != j:
            data[x[j] - x[i], y[j] - y[i]] += 1 i != j i j data[x[j] - x[i], y[j] - y[i]] += 1 data[x[j] - x[i], y[j] - y[i]] data x[j] - x[i] x[j] x j x[i] x i 1 print(n - max(data.values())) print n - max(data.values()) n max(data.values()) max data.values() data.values data values data = defaultdict(int) defaultdict(int) data x, y = [0] * n, [0] * n [0] * n x n = int(input()) int(input()) n y = [0] * n, [0] * n [0] * n y
from collections import defaultdict

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

if n == 1:
    print(1)
    exit()
for i in range(n):
    for j in range(n):
        if i != j:
            data[x[j] - x[i], y[j] - y[i]] += 1

print(n - max(data.values()))