import fractions
n = int(input())
z = [list(map(int,input().split())) for _ in range(n)]
if n == 1:
	print(1)
else:
	a = []
	ans = 10**18
	for i in range(n):
		for j in range(i+1, n):
			a.append((z[i][0]-z[j][0], z[i][1]-z[j][1]))
	for i, j in a:
		tmpans = n
		for k, l in z:
			if [k-i, l-j] in z:
				tmpans -= 1
		ans = min(ans, tmpans)
	print(ans) import fractions fractions 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 z = [list(map(int,input().split())) for _ in range(n)] z [list(map(int,input().split())) for _ in range(n)] if n == 1:
	print(1)
else:
	a = []
	ans = 10**18
	for i in range(n):
		for j in range(i+1, n):
			a.append((z[i][0]-z[j][0], z[i][1]-z[j][1]))
	for i, j in a:
		tmpans = n
		for k, l in z:
			if [k-i, l-j] in z:
				tmpans -= 1
		ans = min(ans, tmpans)
	print(ans) n == 1 n 1 print(1) print 1 a = [] a [] ans = 10**18 ans 10**18 10 18 for i in range(n):
		for j in range(i+1, n):
			a.append((z[i][0]-z[j][0], z[i][1]-z[j][1]))
	 i range(n) range n for j in range(i+1, n):
			a.append((z[i][0]-z[j][0], z[i][1]-z[j][1]))
	 j range(i+1, n) range i+1 i 1 n a.append((z[i][0]-z[j][0], z[i][1]-z[j][1])) a.append a append (z[i][0]-z[j][0], z[i][1]-z[j][1]) z[i][0]-z[j][0] z[i][0] [i] z i 0 z[j][0] [j] z j 0 z[i][1]-z[j][1] z[i][1] [i] z i 1 z[j][1] [j] z j 1 for i, j in a:
		tmpans = n
		for k, l in z:
			if [k-i, l-j] in z:
				tmpans -= 1
		ans = min(ans, tmpans)
	 i j a tmpans = n tmpans n for k, l in z:
			if [k-i, l-j] in z:
				tmpans -= 1
		 k l z if [k-i, l-j] in z:
				tmpans -= 1
		 [k-i, l-j] in z [k-i, l-j] k-i k i l-j l j z tmpans -= 1 tmpans 1 ans = min(ans, tmpans) ans min(ans, tmpans) min ans tmpans print(ans) print ans z = [list(map(int,input().split())) for _ in range(n)] [list(map(int,input().split())) for _ in range(n)] z ans = min(ans, tmpans) min(ans, tmpans) ans tmpans -= 1 1 tmpans n = int(input()) int(input()) n ans = 10**18 10**18 ans a = [] [] a tmpans = n n tmpans
import fractions
n = int(input())
z = [list(map(int,input().split())) for _ in range(n)]
if n == 1:
	print(1)
else:
	a = []
	ans = 10**18
	for i in range(n):
		for j in range(i+1, n):
			a.append((z[i][0]-z[j][0], z[i][1]-z[j][1]))
	for i, j in a:
		tmpans = n
		for k, l in z:
			if [k-i, l-j] in z:
				tmpans -= 1
		ans = min(ans, tmpans)
	print(ans)