N = int(input())
x, y = [], []
for _ in range(N):
    a, b = map(int, input().split())
    x.append(a)
    y.append(b)

res = 0
for i in range(N):
    for j in range(N):
        if i == j:
            continue
        p = x[i] - x[j]
        q = y[i] - y[j]
        
        cnt = 0
        for ii in range(N):
            for jj in range(N):
                pp = x[jj] - p
                qq = y[jj] - q
                if ii == jj:
                    continue
                if pp == x[ii] and qq == y[ii]:
                    cnt += 1
            res = max(res, cnt)

print(N - res) N = int(input()) N int(input()) int input() input x, y = [], [] x [] y [] for _ in range(N):
    a, b = map(int, input().split())
    x.append(a)
    y.append(b) _ range(N) range N a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b x.append(a) x.append x append a y.append(b) y.append y append b res = 0 res 0 for i in range(N):
    for j in range(N):
        if i == j:
            continue
        p = x[i] - x[j]
        q = y[i] - y[j]
        
        cnt = 0
        for ii in range(N):
            for jj in range(N):
                pp = x[jj] - p
                qq = y[jj] - q
                if ii == jj:
                    continue
                if pp == x[ii] and qq == y[ii]:
                    cnt += 1
            res = max(res, cnt) i range(N) range N for j in range(N):
        if i == j:
            continue
        p = x[i] - x[j]
        q = y[i] - y[j]
        
        cnt = 0
        for ii in range(N):
            for jj in range(N):
                pp = x[jj] - p
                qq = y[jj] - q
                if ii == jj:
                    continue
                if pp == x[ii] and qq == y[ii]:
                    cnt += 1
            res = max(res, cnt) j range(N) range N if i == j:
            continue
         i == j i j continue p = x[i] - x[j] p x[i] - x[j] x[i] x i x[j] x j q = y[i] - y[j] q y[i] - y[j] y[i] y i y[j] y j cnt = 0 cnt 0 for ii in range(N):
            for jj in range(N):
                pp = x[jj] - p
                qq = y[jj] - q
                if ii == jj:
                    continue
                if pp == x[ii] and qq == y[ii]:
                    cnt += 1
            res = max(res, cnt) ii range(N) range N for jj in range(N):
                pp = x[jj] - p
                qq = y[jj] - q
                if ii == jj:
                    continue
                if pp == x[ii] and qq == y[ii]:
                    cnt += 1
             jj range(N) range N pp = x[jj] - p pp x[jj] - p x[jj] x jj p qq = y[jj] - q qq y[jj] - q y[jj] y jj q if ii == jj:
                    continue
                 ii == jj ii jj continue if pp == x[ii] and qq == y[ii]:
                    cnt += 1
             pp == x[ii] and qq == y[ii] pp == x[ii] pp x[ii] x ii qq == y[ii] qq y[ii] y ii cnt += 1 cnt 1 res = max(res, cnt) res max(res, cnt) max res cnt print(N - res) print N - res N res res = 0 0 res pp = x[jj] - p x[jj] - p pp a, b = map(int, input().split()) map(int, input().split()) a x, y = [], [] [] x qq = y[jj] - q y[jj] - q qq N = int(input()) int(input()) N q = y[i] - y[j] y[i] - y[j] q cnt = 0 0 cnt res = max(res, cnt) max(res, cnt) res y = [], [] [] y cnt += 1 1 cnt b = map(int, input().split()) map(int, input().split()) b p = x[i] - x[j] x[i] - x[j] p
N = int(input())
x, y = [], []
for _ in range(N):
    a, b = map(int, input().split())
    x.append(a)
    y.append(b)

res = 0
for i in range(N):
    for j in range(N):
        if i == j:
            continue
        p = x[i] - x[j]
        q = y[i] - y[j]
        
        cnt = 0
        for ii in range(N):
            for jj in range(N):
                pp = x[jj] - p
                qq = y[jj] - q
                if ii == jj:
                    continue
                if pp == x[ii] and qq == y[ii]:
                    cnt += 1
            res = max(res, cnt)

print(N - res)
