from collections import defaultdict
n = int(input())
balls = []
diffs = [[None] * n for _ in range(n)]
for _ in range(n):
    x, y = [int(i) - 1 for i in input().split()]
    balls.append((x, y))

d = defaultdict(int)

# 各ボールの差分を計算する
for i in range(n):
    for j in range(n):
        ax, ay = balls[i]
        bx, by = balls[j]
        diffs[i][j] = (bx - ax, by - ay)
        if bx - ax != 0 or by - ay != 0:  # p≠0 または q≠0
            d[(bx - ax, by - ay)] += 1

_max = 0

for k, v in d.items():
    _max = max(_max, v)

print(n - _max) from collections import defaultdict n = int(input()) n int(input()) int input() input balls = [] balls [] [None] * n for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) [None] * n [None] None n diffs = [[None] * n for _ in range(n)] diffs [[None] * n for _ in range(n)] for _ in range(n):
    x, y = [int(i) - 1 for i in input().split()]
    balls.append((x, y)) _ range(n) range n int(i) - 1 for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) - 1 int(i) int i 1 x, y = [int(i) - 1 for i in input().split()] x [int(i) - 1 for i in input().split()] y balls.append((x, y)) balls.append balls append (x, y) x y d = defaultdict(int) d defaultdict(int) defaultdict int for i in range(n):
    for j in range(n):
        ax, ay = balls[i]
        bx, by = balls[j]
        diffs[i][j] = (bx - ax, by - ay)
        if bx - ax != 0 or by - ay != 0:  # p≠0 または q≠0
            d[(bx - ax, by - ay)] += 1 i range(n) range n for j in range(n):
        ax, ay = balls[i]
        bx, by = balls[j]
        diffs[i][j] = (bx - ax, by - ay)
        if bx - ax != 0 or by - ay != 0:  # p≠0 または q≠0
            d[(bx - ax, by - ay)] += 1 j range(n) range n ax, ay = balls[i] ax balls[i] balls i ay bx, by = balls[j] bx balls[j] balls j by diffs[i][j] = (bx - ax, by - ay) diffs[i][j] [i] diffs i j (bx - ax, by - ay) bx - ax bx ax by - ay by ay if bx - ax != 0 or by - ay != 0:  # p≠0 または q≠0
            d[(bx - ax, by - ay)] += 1 bx - ax != 0 or by - ay != 0 bx - ax != 0 bx - ax bx ax 0 by - ay != 0 by - ay by ay 0 d[(bx - ax, by - ay)] += 1 d[(bx - ax, by - ay)] d (bx - ax, by - ay) bx - ax bx ax by - ay by ay 1 _max = 0 _max 0 for k, v in d.items():
    _max = max(_max, v) k v d.items() d.items d items _max = max(_max, v) _max max(_max, v) max _max v print(n - _max) print n - _max n _max d = defaultdict(int) defaultdict(int) d bx, by = balls[j] balls[j] bx ax, ay = balls[i] balls[i] ax balls = [] [] balls _max = 0 0 _max n = int(input()) int(input()) n diffs = [[None] * n for _ in range(n)] [[None] * n for _ in range(n)] diffs _max = max(_max, v) max(_max, v) _max y = [int(i) - 1 for i in input().split()] [int(i) - 1 for i in input().split()] y by = balls[j] balls[j] by ay = balls[i] balls[i] ay x, y = [int(i) - 1 for i in input().split()] [int(i) - 1 for i in input().split()] x
from collections import defaultdict
n = int(input())
balls = []
diffs = [[None] * n for _ in range(n)]
for _ in range(n):
    x, y = [int(i) - 1 for i in input().split()]
    balls.append((x, y))

d = defaultdict(int)

# 各ボールの差分を計算する
for i in range(n):
    for j in range(n):
        ax, ay = balls[i]
        bx, by = balls[j]
        diffs[i][j] = (bx - ax, by - ay)
        if bx - ax != 0 or by - ay != 0:  # p≠0 または q≠0
            d[(bx - ax, by - ay)] += 1

_max = 0

for k, v in d.items():
    _max = max(_max, v)

print(n - _max)
