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

pq = []
for i in range(N):
    for j in range(N):
        if i != j:
            x1 = xy[i][0]
            y1 = xy[i][1]
            x2 = xy[j][0]
            y2 = xy[j][1]
            pq.append((x2 - x1, y2 - y1))

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

pq = []
for i in range(N):
    for j in range(N):
        if i != j:
            x1 = xy[i][0]
            y1 = xy[i][1]
            x2 = xy[j][0]
            y2 = xy[j][1]
            pq.append((x2 - x1, y2 - y1))

ans = N
for p,q in pq:
    tmp = 0
    for i in range(N):
        for j in range(N):
            if i != j:
                x1 = xy[i][0]
                y1 = xy[i][1]
                x2 = xy[j][0]
                y2 = xy[j][1]
                if x2 - x1 == p and y2 - y1 == q:
                    tmp += 1
    ans = min(ans, N - tmp)

print(ans)
