from collections import Counter

N = int(input())
XY = [list(map(int, input().split())) for _ in range(N)]
XY.sort()
diff = []
for i in range(N):
    xi, yi = XY[i]
    for j in range(i+1, N):
        xj, yj = XY[j]
        diff.append((xj-xi, yj-yi))
c = Counter(diff)
print(N-max(c.values()) if c else N) from collections import Counter 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)] XY.sort() XY.sort XY sort diff = [] diff [] for i in range(N):
    xi, yi = XY[i]
    for j in range(i+1, N):
        xj, yj = XY[j]
        diff.append((xj-xi, yj-yi)) i range(N) range N xi, yi = XY[i] xi XY[i] XY i yi for j in range(i+1, N):
        xj, yj = XY[j]
        diff.append((xj-xi, yj-yi)) j range(i+1, N) range i+1 i 1 N xj, yj = XY[j] xj XY[j] XY j yj diff.append((xj-xi, yj-yi)) diff.append diff append (xj-xi, yj-yi) xj-xi xj xi yj-yi yj yi c = Counter(diff) c Counter(diff) Counter diff print(N-max(c.values()) if c else N) print N-max(c.values()) if c else N c N-max(c.values()) N max(c.values()) max c.values() c.values c values N XY = [list(map(int, input().split())) for _ in range(N)] [list(map(int, input().split())) for _ in range(N)] XY xi, yi = XY[i] XY[i] xi xj, yj = XY[j] XY[j] xj N = int(input()) int(input()) N diff = [] [] diff c = Counter(diff) Counter(diff) c yi = XY[i] XY[i] yi yj = XY[j] XY[j] yj
from collections import Counter

N = int(input())
XY = [list(map(int, input().split())) for _ in range(N)]
XY.sort()
diff = []
for i in range(N):
    xi, yi = XY[i]
    for j in range(i+1, N):
        xj, yj = XY[j]
        diff.append((xj-xi, yj-yi))
c = Counter(diff)
print(N-max(c.values()) if c else N)