import itertools
import collections as c
N = int(input())
XY = [list(map(int, input().split())) for _ in range(N)]
vectors = []
for xy1,xy2 in itertools.combinations(XY,2):
	p = xy2[0] - xy1[0]
	q = xy2[1] - xy1[1]

	vectors.append((p,q))
	vectors.append((-p,-q))

V = c.Counter(vectors)
if N >= 2:
	x = max(V.values())
	ans = N-x
else:
	ans = 1

print(ans) import itertools itertools import collections as c 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 XY = [list(map(int, input().split())) for _ in range(N)] XY [list(map(int, input().split())) for _ in range(N)] vectors = [] vectors [] for xy1,xy2 in itertools.combinations(XY,2):
	p = xy2[0] - xy1[0]
	q = xy2[1] - xy1[1]

	vectors.append((p,q))
	vectors.append((-p,-q)) xy1 xy2 itertools.combinations(XY,2) itertools.combinations itertools combinations XY 2 p = xy2[0] - xy1[0] p xy2[0] - xy1[0] xy2[0] xy2 0 xy1[0] xy1 0 q = xy2[1] - xy1[1] q xy2[1] - xy1[1] xy2[1] xy2 1 xy1[1] xy1 1 vectors.append((p,q)) vectors.append vectors append (p,q) p q vectors.append((-p,-q)) vectors.append vectors append (-p,-q) -p p -q q V = c.Counter(vectors) V c.Counter(vectors) c.Counter c Counter vectors if N >= 2:
	x = max(V.values())
	ans = N-x
else:
	ans = 1 N >= 2 N 2 x = max(V.values()) x max(V.values()) max V.values() V.values V values ans = N-x ans N-x N x ans = 1 ans 1 print(ans) print ans XY = [list(map(int, input().split())) for _ in range(N)] [list(map(int, input().split())) for _ in range(N)] XY vectors = [] [] vectors V = c.Counter(vectors) c.Counter(vectors) V x = max(V.values()) max(V.values()) x p = xy2[0] - xy1[0] xy2[0] - xy1[0] p N = int(input()) int(input()) N q = xy2[1] - xy1[1] xy2[1] - xy1[1] q ans = N-x N-x ans ans = 1 1 ans
import itertools
import collections as c
N = int(input())
XY = [list(map(int, input().split())) for _ in range(N)]
vectors = []
for xy1,xy2 in itertools.combinations(XY,2):
	p = xy2[0] - xy1[0]
	q = xy2[1] - xy1[1]

	vectors.append((p,q))
	vectors.append((-p,-q))

V = c.Counter(vectors)
if N >= 2:
	x = max(V.values())
	ans = N-x
else:
	ans = 1

print(ans)