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

if n == 1:
    print(1)
    exit()
    
pq = []
for i in range(n):
    for j in range(n):
        if i != j:
            pq.append((xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1]))

ans = float("inf")
for p, q in pq:
    tmp = 0
    for i in range(n):
        for j in range(n):
            if i != j and (p, q) == (xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1]):
                tmp += 1
        ans = min(ans, n - tmp)
            
print(ans) 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)] if n == 1:
    print(1)
    exit()
     n == 1 n 1 print(1) print 1 exit() exit pq = [] pq [] for i in range(n):
    for j in range(n):
        if i != j:
            pq.append((xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1])) i range(n) range n for j in range(n):
        if i != j:
            pq.append((xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1])) j range(n) range n if i != j:
            pq.append((xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1])) i != j i j pq.append((xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1])) pq.append pq append (xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1]) xy[i][0] - xy[j][0] xy[i][0] [i] xy i 0 xy[j][0] [j] xy j 0 xy[i][1] - xy[j][1] xy[i][1] [i] xy i 1 xy[j][1] [j] xy j 1 ans = float("inf") ans float("inf") float "inf" for p, q in pq:
    tmp = 0
    for i in range(n):
        for j in range(n):
            if i != j and (p, q) == (xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1]):
                tmp += 1
        ans = min(ans, n - tmp)
             p q pq tmp = 0 tmp 0 for i in range(n):
        for j in range(n):
            if i != j and (p, q) == (xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1]):
                tmp += 1
        ans = min(ans, n - tmp)
             i range(n) range n for j in range(n):
            if i != j and (p, q) == (xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1]):
                tmp += 1
         j range(n) range n if i != j and (p, q) == (xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1]):
                tmp += 1
         i != j and (p, q) == (xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1]) i != j i j (p, q) == (xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1]) (p, q) p q (xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1]) xy[i][0] - xy[j][0] xy[i][0] [i] xy i 0 xy[j][0] [j] xy j 0 xy[i][1] - xy[j][1] xy[i][1] [i] xy i 1 xy[j][1] [j] xy j 1 tmp += 1 tmp 1 ans = min(ans, n - tmp) ans min(ans, n - tmp) min ans n - tmp n tmp print(ans) print ans n = int(input()) int(input()) n pq = [] [] pq tmp += 1 1 tmp ans = min(ans, n - tmp) min(ans, n - tmp) ans xy = [list(map(int, input().split())) for _ in range(n)] [list(map(int, input().split())) for _ in range(n)] xy ans = float("inf") float("inf") ans tmp = 0 0 tmp
n = int(input())
xy = [list(map(int, input().split())) for _ in range(n)]

if n == 1:
    print(1)
    exit()
    
pq = []
for i in range(n):
    for j in range(n):
        if i != j:
            pq.append((xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1]))

ans = float("inf")
for p, q in pq:
    tmp = 0
    for i in range(n):
        for j in range(n):
            if i != j and (p, q) == (xy[i][0] - xy[j][0] ,xy[i][1] - xy[j][1]):
                tmp += 1
        ans = min(ans, n - tmp)
            
print(ans)