from itertools import permutations
n = int(input())
point_ls = [0] * n
for i in range(n):
    point_ls[i] = list(map(int, input().split()))
ind_ls = [i for i in range(n)]
diff_ls = []
for start, end in permutations(ind_ls, 2):
    diff = [0] * 2
    diff[0] = point_ls[end][0] - point_ls[start][0]
    diff[1] = point_ls[end][1] - point_ls[start][1]
    diff_ls.append(diff)
ans = 0
for diff in diff_ls:
    same = 0
    for diff2 in diff_ls:
        if diff == diff2:
            same += 1
    ans = max(ans, same)
print(n-ans)
    


 from itertools import permutations n = int(input()) n int(input()) int input() input point_ls = [0] * n point_ls [0] * n [0] 0 n for i in range(n):
    point_ls[i] = list(map(int, input().split())) i range(n) range n point_ls[i] = list(map(int, input().split())) point_ls[i] point_ls i list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split i for i in range(n) for i in range(n) i range(n) range n for i in range(n) i ind_ls = [i for i in range(n)] ind_ls [i for i in range(n)] diff_ls = [] diff_ls [] for start, end in permutations(ind_ls, 2):
    diff = [0] * 2
    diff[0] = point_ls[end][0] - point_ls[start][0]
    diff[1] = point_ls[end][1] - point_ls[start][1]
    diff_ls.append(diff) start end permutations(ind_ls, 2) permutations ind_ls 2 diff = [0] * 2 diff [0] * 2 [0] 0 2 diff[0] = point_ls[end][0] - point_ls[start][0] diff[0] diff 0 point_ls[end][0] - point_ls[start][0] point_ls[end][0] [end] point_ls end 0 point_ls[start][0] [start] point_ls start 0 diff[1] = point_ls[end][1] - point_ls[start][1] diff[1] diff 1 point_ls[end][1] - point_ls[start][1] point_ls[end][1] [end] point_ls end 1 point_ls[start][1] [start] point_ls start 1 diff_ls.append(diff) diff_ls.append diff_ls append diff ans = 0 ans 0 for diff in diff_ls:
    same = 0
    for diff2 in diff_ls:
        if diff == diff2:
            same += 1
    ans = max(ans, same) diff diff_ls same = 0 same 0 for diff2 in diff_ls:
        if diff == diff2:
            same += 1
     diff2 diff_ls if diff == diff2:
            same += 1
     diff == diff2 diff diff2 same += 1 same 1 ans = max(ans, same) ans max(ans, same) max ans same print(n-ans) print n-ans n ans n = int(input()) int(input()) n same += 1 1 same ind_ls = [i for i in range(n)] [i for i in range(n)] ind_ls ans = 0 0 ans diff_ls = [] [] diff_ls point_ls = [0] * n [0] * n point_ls same = 0 0 same diff = [0] * 2 [0] * 2 diff ans = max(ans, same) max(ans, same) ans
from itertools import permutations
n = int(input())
point_ls = [0] * n
for i in range(n):
    point_ls[i] = list(map(int, input().split()))
ind_ls = [i for i in range(n)]
diff_ls = []
for start, end in permutations(ind_ls, 2):
    diff = [0] * 2
    diff[0] = point_ls[end][0] - point_ls[start][0]
    diff[1] = point_ls[end][1] - point_ls[start][1]
    diff_ls.append(diff)
ans = 0
for diff in diff_ls:
    same = 0
    for diff2 in diff_ls:
        if diff == diff2:
            same += 1
    ans = max(ans, same)
print(n-ans)
    



