from collections import defaultdict
n = int(input())
li = []
for i in range(n):
    x, y = map(int, input().split())
    li.append((x, y))
dd = defaultdict(lambda:0)
for i in range(n):
    for j in range(n):
        if i != j:
            dd[(li[i][0]-li[j][0], li[i][1]-li[j][1])] += 1
m = 0
for k in dd:
    m = max(dd[k],m)
print(n-m) from collections import defaultdict n = int(input()) n int(input()) int input() input li = [] li [] for i in range(n):
    x, y = map(int, input().split())
    li.append((x, y)) i range(n) range n x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y li.append((x, y)) li.append li append (x, y) x y dd = defaultdict(lambda:0) dd defaultdict(lambda:0) defaultdict lambda:0 0 for i in range(n):
    for j in range(n):
        if i != j:
            dd[(li[i][0]-li[j][0], li[i][1]-li[j][1])] += 1 i range(n) range n for j in range(n):
        if i != j:
            dd[(li[i][0]-li[j][0], li[i][1]-li[j][1])] += 1 j range(n) range n if i != j:
            dd[(li[i][0]-li[j][0], li[i][1]-li[j][1])] += 1 i != j i j dd[(li[i][0]-li[j][0], li[i][1]-li[j][1])] += 1 dd[(li[i][0]-li[j][0], li[i][1]-li[j][1])] dd (li[i][0]-li[j][0], li[i][1]-li[j][1]) li[i][0]-li[j][0] li[i][0] [i] li i 0 li[j][0] [j] li j 0 li[i][1]-li[j][1] li[i][1] [i] li i 1 li[j][1] [j] li j 1 1 m = 0 m 0 for k in dd:
    m = max(dd[k],m) k dd m = max(dd[k],m) m max(dd[k],m) max dd[k] dd k m print(n-m) print n-m n m y = map(int, input().split()) map(int, input().split()) y n = int(input()) int(input()) n dd = defaultdict(lambda:0) defaultdict(lambda:0) dd m = max(dd[k],m) max(dd[k],m) m li = [] [] li m = 0 0 m x, y = map(int, input().split()) map(int, input().split()) x
from collections import defaultdict
n = int(input())
li = []
for i in range(n):
    x, y = map(int, input().split())
    li.append((x, y))
dd = defaultdict(lambda:0)
for i in range(n):
    for j in range(n):
        if i != j:
            dd[(li[i][0]-li[j][0], li[i][1]-li[j][1])] += 1
m = 0
for k in dd:
    m = max(dd[k],m)
print(n-m)