import itertools
from collections import Counter
n = int(input())
xy = [[int(x) for x in input().split()] for _ in range(n)]
vectors = []
for xy1, xy2 in itertools.combinations(xy,2):
    p = xy2[0] - xy1[0]
    q = xy2[1] - xy1[1]
    vectors.append((p, q))
    vectors.append((-p, -q))
c = Counter(vectors)
if n>=2:
    x = max(c.values())
    res = n - x
else:
    res = 1
print(res) import itertools itertools from collections import Counter n = int(input()) n int(input()) int input() input [int(x) for x in input().split()] for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) [int(x) for x in input().split()] xy = [[int(x) for x in input().split()] for _ in range(n)] xy [[int(x) for x in input().split()] for _ in range(n)] vectors = [] vectors [] for xy1, xy2 in itertools.combinations(xy,2):
    p = xy2[0] - xy1[0]
    q = xy2[1] - xy1[1]
    vectors.append((p, q))
    vectors.append((-p, -q)) xy1 xy2 itertools.combinations(xy,2) itertools.combinations itertools combinations xy 2 p = xy2[0] - xy1[0] p xy2[0] - xy1[0] xy2[0] xy2 0 xy1[0] xy1 0 q = xy2[1] - xy1[1] q xy2[1] - xy1[1] xy2[1] xy2 1 xy1[1] xy1 1 vectors.append((p, q)) vectors.append vectors append (p, q) p q vectors.append((-p, -q)) vectors.append vectors append (-p, -q) -p p -q q c = Counter(vectors) c Counter(vectors) Counter vectors if n>=2:
    x = max(c.values())
    res = n - x
else:
    res = 1 n>=2 n 2 x = max(c.values()) x max(c.values()) max c.values() c.values c values res = n - x res n - x n x res = 1 res 1 print(res) print res vectors = [] [] vectors x = max(c.values()) max(c.values()) x p = xy2[0] - xy1[0] xy2[0] - xy1[0] p q = xy2[1] - xy1[1] xy2[1] - xy1[1] q c = Counter(vectors) Counter(vectors) c res = n - x n - x res res = 1 1 res n = int(input()) int(input()) n xy = [[int(x) for x in input().split()] for _ in range(n)] [[int(x) for x in input().split()] for _ in range(n)] xy
import itertools
from collections import Counter
n = int(input())
xy = [[int(x) for x in input().split()] for _ in range(n)]
vectors = []
for xy1, xy2 in itertools.combinations(xy,2):
    p = xy2[0] - xy1[0]
    q = xy2[1] - xy1[1]
    vectors.append((p, q))
    vectors.append((-p, -q))
c = Counter(vectors)
if n>=2:
    x = max(c.values())
    res = n - x
else:
    res = 1
print(res)