from collections import defaultdict

n = int(input())
M = []
for i in range(n):
    x, y = map(int, input().split())
    M.append([x, y])
M.sort(key=lambda x: (x[0], x[1]))
X = defaultdict(int)
for i in range(n - 1):
    for j in range(i + 1, n):
        a = M[i][0] - M[j][0]
        b = M[i][1] - M[j][1]
        X[(a, b)] += 1
print(n - max(X.values(), default=0)) from collections import defaultdict n = int(input()) n int(input()) int input() input M = [] M [] for i in range(n):
    x, y = map(int, input().split())
    M.append([x, y]) i range(n) range n x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y M.append([x, y]) M.append M append [x, y] x y M.sort(key=lambda x: (x[0], x[1])) M.sort M sort key=lambda x: (x[0], x[1]) key lambda x: (x[0], x[1]) (x[0], x[1]) x[0] x 0 x[1] x 1 x X = defaultdict(int) X defaultdict(int) defaultdict int for i in range(n - 1):
    for j in range(i + 1, n):
        a = M[i][0] - M[j][0]
        b = M[i][1] - M[j][1]
        X[(a, b)] += 1 i range(n - 1) range n - 1 n 1 for j in range(i + 1, n):
        a = M[i][0] - M[j][0]
        b = M[i][1] - M[j][1]
        X[(a, b)] += 1 j range(i + 1, n) range i + 1 i 1 n a = M[i][0] - M[j][0] a M[i][0] - M[j][0] M[i][0] [i] M i 0 M[j][0] [j] M j 0 b = M[i][1] - M[j][1] b M[i][1] - M[j][1] M[i][1] [i] M i 1 M[j][1] [j] M j 1 X[(a, b)] += 1 X[(a, b)] X (a, b) a b 1 print(n - max(X.values(), default=0)) print n - max(X.values(), default=0) n max(X.values(), default=0) max X.values() X.values X values default=0 default 0 n = int(input()) int(input()) n x, y = map(int, input().split()) map(int, input().split()) x X = defaultdict(int) defaultdict(int) X M = [] [] M y = map(int, input().split()) map(int, input().split()) y b = M[i][1] - M[j][1] M[i][1] - M[j][1] b a = M[i][0] - M[j][0] M[i][0] - M[j][0] a
from collections import defaultdict

n = int(input())
M = []
for i in range(n):
    x, y = map(int, input().split())
    M.append([x, y])
M.sort(key=lambda x: (x[0], x[1]))
X = defaultdict(int)
for i in range(n - 1):
    for j in range(i + 1, n):
        a = M[i][0] - M[j][0]
        b = M[i][1] - M[j][1]
        X[(a, b)] += 1
print(n - max(X.values(), default=0))