n = int(input())
xy = [tuple(map(int, input().split())) for _ in range(n)]
s_xy = set(xy)

count = 0
for i in range(n-1):
    for j in range(i+1, n):
        ix, iy = xy[i]
        jx, jy = xy[j]
        p = jx - ix
        q = jy - iy
        tc = sum((x-p,y-q) in xy for x, y in s_xy)

        count = max(count, tc)

print(n-count) n = int(input()) n int(input()) int input() input tuple(map(int, input().split())) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) tuple(map(int, input().split())) tuple map(int, input().split()) map int input().split() ().split () input split xy = [tuple(map(int, input().split())) for _ in range(n)] xy [tuple(map(int, input().split())) for _ in range(n)] s_xy = set(xy) s_xy set(xy) set xy count = 0 count 0 for i in range(n-1):
    for j in range(i+1, n):
        ix, iy = xy[i]
        jx, jy = xy[j]
        p = jx - ix
        q = jy - iy
        tc = sum((x-p,y-q) in xy for x, y in s_xy)

        count = max(count, tc) i range(n-1) range n-1 n 1 for j in range(i+1, n):
        ix, iy = xy[i]
        jx, jy = xy[j]
        p = jx - ix
        q = jy - iy
        tc = sum((x-p,y-q) in xy for x, y in s_xy)

        count = max(count, tc) j range(i+1, n) range i+1 i 1 n ix, iy = xy[i] ix xy[i] xy i iy jx, jy = xy[j] jx xy[j] xy j jy p = jx - ix p jx - ix jx ix q = jy - iy q jy - iy jy iy tc = sum((x-p,y-q) in xy for x, y in s_xy) tc sum((x-p,y-q) in xy for x, y in s_xy) sum (x-p,y-q) in xy (x-p,y-q) x-p x p y-q y q xy count = max(count, tc) count max(count, tc) max count tc print(n-count) print n-count n count s_xy = set(xy) set(xy) s_xy jx, jy = xy[j] xy[j] jx n = int(input()) int(input()) n iy = xy[i] xy[i] iy q = jy - iy jy - iy q ix, iy = xy[i] xy[i] ix xy = [tuple(map(int, input().split())) for _ in range(n)] [tuple(map(int, input().split())) for _ in range(n)] xy tc = sum((x-p,y-q) in xy for x, y in s_xy) sum((x-p,y-q) in xy for x, y in s_xy) tc count = 0 0 count jy = xy[j] xy[j] jy p = jx - ix jx - ix p count = max(count, tc) max(count, tc) count
n = int(input())
xy = [tuple(map(int, input().split())) for _ in range(n)]
s_xy = set(xy)

count = 0
for i in range(n-1):
    for j in range(i+1, n):
        ix, iy = xy[i]
        jx, jy = xy[j]
        p = jx - ix
        q = jy - iy
        tc = sum((x-p,y-q) in xy for x, y in s_xy)

        count = max(count, tc)

print(n-count)