import itertools
from collections import defaultdict
from sys import exit

N = int(input())
balls = sorted([tuple(map(int, input().split())) for _ in range(N)])

if N == 1:
    print(1)
    exit()

d = defaultdict(int)
for i, j in itertools.combinations(range(N), 2):
    d[(balls[j][0] - balls[i][0], balls[j][1] - balls[i][1])] += 1
print(N - max(d.values())) import itertools itertools from collections import defaultdict from sys import exit N = int(input()) N int(input()) int input() input tuple(map(int, input().split())) for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) tuple(map(int, input().split())) tuple map(int, input().split()) map int input().split() ().split () input split balls = sorted([tuple(map(int, input().split())) for _ in range(N)]) balls sorted([tuple(map(int, input().split())) for _ in range(N)]) sorted [tuple(map(int, input().split())) for _ in range(N)] if N == 1:
    print(1)
    exit() N == 1 N 1 print(1) print 1 exit() exit d = defaultdict(int) d defaultdict(int) defaultdict int for i, j in itertools.combinations(range(N), 2):
    d[(balls[j][0] - balls[i][0], balls[j][1] - balls[i][1])] += 1 i j itertools.combinations(range(N), 2) itertools.combinations itertools combinations range(N) range N 2 d[(balls[j][0] - balls[i][0], balls[j][1] - balls[i][1])] += 1 d[(balls[j][0] - balls[i][0], balls[j][1] - balls[i][1])] d (balls[j][0] - balls[i][0], balls[j][1] - balls[i][1]) balls[j][0] - balls[i][0] balls[j][0] [j] balls j 0 balls[i][0] [i] balls i 0 balls[j][1] - balls[i][1] balls[j][1] [j] balls j 1 balls[i][1] [i] balls i 1 1 print(N - max(d.values())) print N - max(d.values()) N max(d.values()) max d.values() d.values d values N = int(input()) int(input()) N balls = sorted([tuple(map(int, input().split())) for _ in range(N)]) sorted([tuple(map(int, input().split())) for _ in range(N)]) balls d = defaultdict(int) defaultdict(int) d
import itertools
from collections import defaultdict
from sys import exit

N = int(input())
balls = sorted([tuple(map(int, input().split())) for _ in range(N)])

if N == 1:
    print(1)
    exit()

d = defaultdict(int)
for i, j in itertools.combinations(range(N), 2):
    d[(balls[j][0] - balls[i][0], balls[j][1] - balls[i][1])] += 1
print(N - max(d.values()))
