from collections import defaultdict
d = defaultdict(int)
n = int(input())
xy = [tuple(map(int, input().split())) for _ in range(n)]
xy.sort()

for i in range(n - 1):
    xa, ya = xy[i]
    for j in range(i + 1, n):
        xb, yb = xy[j]
        p = xb - xa
        q = yb - ya
        d[(p, q)] += 1

ans = n
for k, v in d.items():
    ans = min(ans, n - v)
if n == 1:
    ans = 1

print(ans) from collections import defaultdict d = defaultdict(int) d defaultdict(int) defaultdict int n = int(input()) n int(input()) int input() input tuple(map(int, input().split())) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) tuple(map(int, input().split())) tuple map(int, input().split()) map int input().split() ().split () input split xy = [tuple(map(int, input().split())) for _ in range(n)] xy [tuple(map(int, input().split())) for _ in range(n)] xy.sort() xy.sort xy sort for i in range(n - 1):
    xa, ya = xy[i]
    for j in range(i + 1, n):
        xb, yb = xy[j]
        p = xb - xa
        q = yb - ya
        d[(p, q)] += 1 i range(n - 1) range n - 1 n 1 xa, ya = xy[i] xa xy[i] xy i ya for j in range(i + 1, n):
        xb, yb = xy[j]
        p = xb - xa
        q = yb - ya
        d[(p, q)] += 1 j range(i + 1, n) range i + 1 i 1 n xb, yb = xy[j] xb xy[j] xy j yb p = xb - xa p xb - xa xb xa q = yb - ya q yb - ya yb ya d[(p, q)] += 1 d[(p, q)] d (p, q) p q 1 ans = n ans n for k, v in d.items():
    ans = min(ans, n - v) k v d.items() d.items d items ans = min(ans, n - v) ans min(ans, n - v) min ans n - v n v if n == 1:
    ans = 1 n == 1 n 1 ans = 1 ans 1 print(ans) print ans q = yb - ya yb - ya q ans = 1 1 ans n = int(input()) int(input()) n ya = xy[i] xy[i] ya xa, ya = xy[i] xy[i] xa ans = min(ans, n - v) min(ans, n - v) ans xy = [tuple(map(int, input().split())) for _ in range(n)] [tuple(map(int, input().split())) for _ in range(n)] xy yb = xy[j] xy[j] yb ans = n n ans d = defaultdict(int) defaultdict(int) d xb, yb = xy[j] xy[j] xb p = xb - xa xb - xa p
from collections import defaultdict
d = defaultdict(int)
n = int(input())
xy = [tuple(map(int, input().split())) for _ in range(n)]
xy.sort()

for i in range(n - 1):
    xa, ya = xy[i]
    for j in range(i + 1, n):
        xb, yb = xy[j]
        p = xb - xa
        q = yb - ya
        d[(p, q)] += 1

ans = n
for k, v in d.items():
    ans = min(ans, n - v)
if n == 1:
    ans = 1

print(ans)
