n = int(input())
xy = [list(map(int, input().split())) for _ in range(n)]
xy.sort()
vectors = set()
for i in range(n-1):
    for j in range(i+1, n):
        xi, yi = xy[i]
        xj, yj = xy[j]
        if xj-xi == 0 and yj-yi == 0:
            continue
        unit_vector = (xj-xi, yj-yi)
        vectors |= {unit_vector}
ans = n
for vector in vectors:
    cnt = 0
    for i in range(n-1):
        for j in range(i+1, n):
            xi, yi = xy[i]
            xj, yj = xy[j]
            if vector == (xj-xi, yj-yi):
                cnt += 1
    ans = min(ans, n-cnt)
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)] xy.sort() xy.sort xy sort vectors = set() vectors set() set for i in range(n-1):
    for j in range(i+1, n):
        xi, yi = xy[i]
        xj, yj = xy[j]
        if xj-xi == 0 and yj-yi == 0:
            continue
        unit_vector = (xj-xi, yj-yi)
        vectors |= {unit_vector} i range(n-1) range n-1 n 1 for j in range(i+1, n):
        xi, yi = xy[i]
        xj, yj = xy[j]
        if xj-xi == 0 and yj-yi == 0:
            continue
        unit_vector = (xj-xi, yj-yi)
        vectors |= {unit_vector} j range(i+1, n) range i+1 i 1 n xi, yi = xy[i] xi xy[i] xy i yi xj, yj = xy[j] xj xy[j] xy j yj if xj-xi == 0 and yj-yi == 0:
            continue
         xj-xi == 0 and yj-yi == 0 xj-xi == 0 xj-xi xj xi 0 yj-yi == 0 yj-yi yj yi 0 continue unit_vector = (xj-xi, yj-yi) unit_vector (xj-xi, yj-yi) xj-xi xj xi yj-yi yj yi vectors |= {unit_vector} vectors {unit_vector} ans = n ans n for vector in vectors:
    cnt = 0
    for i in range(n-1):
        for j in range(i+1, n):
            xi, yi = xy[i]
            xj, yj = xy[j]
            if vector == (xj-xi, yj-yi):
                cnt += 1
    ans = min(ans, n-cnt) vector vectors cnt = 0 cnt 0 for i in range(n-1):
        for j in range(i+1, n):
            xi, yi = xy[i]
            xj, yj = xy[j]
            if vector == (xj-xi, yj-yi):
                cnt += 1
     i range(n-1) range n-1 n 1 for j in range(i+1, n):
            xi, yi = xy[i]
            xj, yj = xy[j]
            if vector == (xj-xi, yj-yi):
                cnt += 1
     j range(i+1, n) range i+1 i 1 n xi, yi = xy[i] xi xy[i] xy i yi xj, yj = xy[j] xj xy[j] xy j yj if vector == (xj-xi, yj-yi):
                cnt += 1
     vector == (xj-xi, yj-yi) vector (xj-xi, yj-yi) xj-xi xj xi yj-yi yj yi cnt += 1 cnt 1 ans = min(ans, n-cnt) ans min(ans, n-cnt) min ans n-cnt n cnt print(ans) print ans unit_vector = (xj-xi, yj-yi) (xj-xi, yj-yi) unit_vector n = int(input()) int(input()) n ans = n n ans yj = xy[j] xy[j] yj xj, yj = xy[j] xy[j] xj cnt = 0 0 cnt ans = min(ans, n-cnt) min(ans, n-cnt) ans xi, yi = xy[i] xy[i] xi vectors |= {unit_vector} {unit_vector} vectors vectors = set() set() vectors yi = xy[i] xy[i] yi xj, yj = xy[j] xy[j] xj xi, yi = xy[i] xy[i] xi cnt += 1 1 cnt yi = xy[i] xy[i] yi xy = [list(map(int, input().split())) for _ in range(n)] [list(map(int, input().split())) for _ in range(n)] xy yj = xy[j] xy[j] yj
n = int(input())
xy = [list(map(int, input().split())) for _ in range(n)]
xy.sort()
vectors = set()
for i in range(n-1):
    for j in range(i+1, n):
        xi, yi = xy[i]
        xj, yj = xy[j]
        if xj-xi == 0 and yj-yi == 0:
            continue
        unit_vector = (xj-xi, yj-yi)
        vectors |= {unit_vector}
ans = n
for vector in vectors:
    cnt = 0
    for i in range(n-1):
        for j in range(i+1, n):
            xi, yi = xy[i]
            xj, yj = xy[j]
            if vector == (xj-xi, yj-yi):
                cnt += 1
    ans = min(ans, n-cnt)
print(ans)
