import itertools
import collections

N = int(input())
x_y = [list(map(int, input().split())) for _ in range(N)]

count = collections.defaultdict(int)
for i in itertools.combinations(x_y, 2):
    count[(i[0][0]-i[1][0], i[0][1]-i[1][1])] += 1
    count[(i[1][0]-i[0][0], i[1][1]-i[0][1])] += 1
if not count:
    print(N)
else:
    print(N-max(count.values())) import itertools itertools import collections collections N = int(input()) N int(input()) int input() input list(map(int, input().split())) for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split x_y = [list(map(int, input().split())) for _ in range(N)] x_y [list(map(int, input().split())) for _ in range(N)] count = collections.defaultdict(int) count collections.defaultdict(int) collections.defaultdict collections defaultdict int for i in itertools.combinations(x_y, 2):
    count[(i[0][0]-i[1][0], i[0][1]-i[1][1])] += 1
    count[(i[1][0]-i[0][0], i[1][1]-i[0][1])] += 1 i itertools.combinations(x_y, 2) itertools.combinations itertools combinations x_y 2 count[(i[0][0]-i[1][0], i[0][1]-i[1][1])] += 1 count[(i[0][0]-i[1][0], i[0][1]-i[1][1])] count (i[0][0]-i[1][0], i[0][1]-i[1][1]) i[0][0]-i[1][0] i[0][0] [0] i 0 0 i[1][0] [1] i 1 0 i[0][1]-i[1][1] i[0][1] [0] i 0 1 i[1][1] [1] i 1 1 1 count[(i[1][0]-i[0][0], i[1][1]-i[0][1])] += 1 count[(i[1][0]-i[0][0], i[1][1]-i[0][1])] count (i[1][0]-i[0][0], i[1][1]-i[0][1]) i[1][0]-i[0][0] i[1][0] [1] i 1 0 i[0][0] [0] i 0 0 i[1][1]-i[0][1] i[1][1] [1] i 1 1 i[0][1] [0] i 0 1 1 if not count:
    print(N)
else:
    print(N-max(count.values())) not count count print(N) print N print(N-max(count.values())) print N-max(count.values()) N max(count.values()) max count.values() count.values count values N = int(input()) int(input()) N count = collections.defaultdict(int) collections.defaultdict(int) count x_y = [list(map(int, input().split())) for _ in range(N)] [list(map(int, input().split())) for _ in range(N)] x_y
import itertools
import collections

N = int(input())
x_y = [list(map(int, input().split())) for _ in range(N)]

count = collections.defaultdict(int)
for i in itertools.combinations(x_y, 2):
    count[(i[0][0]-i[1][0], i[0][1]-i[1][1])] += 1
    count[(i[1][0]-i[0][0], i[1][1]-i[0][1])] += 1
if not count:
    print(N)
else:
    print(N-max(count.values()))