n = int(input())
xy = []
for _ in range(n):
    x, y = map(int, input().split())
    xy.append((x, y))
dxdy = {}
if n==1:
    print(1)
    exit()
for i in range(n-1):
    for j in range(i+1, n):
        dx = xy[i][0] - xy[j][0]
        dy = xy[i][1] - xy[j][1]
        if dx<0:
            dx, dy = -dx, -dy
        elif dx==0:
            dx, dy = dx, abs(dy)
        if (dx, dy) in dxdy:
            dxdy[(dx, dy)] += 1
        else:
            dxdy[(dx, dy)] = 1
print(n-max(dxdy.values())) n = int(input()) n int(input()) int input() input xy = [] xy [] for _ in range(n):
    x, y = map(int, input().split())
    xy.append((x, y)) _ range(n) range n x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y xy.append((x, y)) xy.append xy append (x, y) x y dxdy = {} dxdy {} if n==1:
    print(1)
    exit() n==1 n 1 print(1) print 1 exit() exit for i in range(n-1):
    for j in range(i+1, n):
        dx = xy[i][0] - xy[j][0]
        dy = xy[i][1] - xy[j][1]
        if dx<0:
            dx, dy = -dx, -dy
        elif dx==0:
            dx, dy = dx, abs(dy)
        if (dx, dy) in dxdy:
            dxdy[(dx, dy)] += 1
        else:
            dxdy[(dx, dy)] = 1 i range(n-1) range n-1 n 1 for j in range(i+1, n):
        dx = xy[i][0] - xy[j][0]
        dy = xy[i][1] - xy[j][1]
        if dx<0:
            dx, dy = -dx, -dy
        elif dx==0:
            dx, dy = dx, abs(dy)
        if (dx, dy) in dxdy:
            dxdy[(dx, dy)] += 1
        else:
            dxdy[(dx, dy)] = 1 j range(i+1, n) range i+1 i 1 n dx = xy[i][0] - xy[j][0] dx xy[i][0] - xy[j][0] xy[i][0] [i] xy i 0 xy[j][0] [j] xy j 0 dy = xy[i][1] - xy[j][1] dy xy[i][1] - xy[j][1] xy[i][1] [i] xy i 1 xy[j][1] [j] xy j 1 if dx<0:
            dx, dy = -dx, -dy
        elif dx==0:
            dx, dy = dx, abs(dy)
         dx<0 dx 0 dx, dy = -dx, -dy dx -dx dx dy -dy dy elif dx==0:
            dx, dy = dx, abs(dy)
         dx==0 dx 0 dx, dy = dx, abs(dy) dx dx dy abs(dy) abs dy if (dx, dy) in dxdy:
            dxdy[(dx, dy)] += 1
        else:
            dxdy[(dx, dy)] = 1 (dx, dy) in dxdy (dx, dy) dx dy dxdy dxdy[(dx, dy)] += 1 dxdy[(dx, dy)] dxdy (dx, dy) dx dy 1 dxdy[(dx, dy)] = 1 dxdy[(dx, dy)] dxdy (dx, dy) dx dy 1 print(n-max(dxdy.values())) print n-max(dxdy.values()) n max(dxdy.values()) max dxdy.values() dxdy.values dxdy values n = int(input()) int(input()) n dx, dy = -dx, -dy -dx dx dx, dy = dx, abs(dy) dx dx dy = xy[i][1] - xy[j][1] xy[i][1] - xy[j][1] dy dx = xy[i][0] - xy[j][0] xy[i][0] - xy[j][0] dx dy = dx, abs(dy) abs(dy) dy dy = -dx, -dy -dy dy xy = [] [] xy y = map(int, input().split()) map(int, input().split()) y dxdy = {} {} dxdy x, y = map(int, input().split()) map(int, input().split()) x
n = int(input())
xy = []
for _ in range(n):
    x, y = map(int, input().split())
    xy.append((x, y))
dxdy = {}
if n==1:
    print(1)
    exit()
for i in range(n-1):
    for j in range(i+1, n):
        dx = xy[i][0] - xy[j][0]
        dy = xy[i][1] - xy[j][1]
        if dx<0:
            dx, dy = -dx, -dy
        elif dx==0:
            dx, dy = dx, abs(dy)
        if (dx, dy) in dxdy:
            dxdy[(dx, dy)] += 1
        else:
            dxdy[(dx, dy)] = 1
print(n-max(dxdy.values()))