N = int(input())
ab = sorted([list(map(int,input().split())) for i in range(N)])
diff = {}
for i in range(N-1):
    for j in range(i+1,N):
        a = (ab[i][0]-ab[j][0],ab[i][1]-ab[j][1])
        if a not in diff:
            diff[a] = 1
        else:
            diff[a] += 1
if diff:
    maxv = max(diff.values())
    print(N-maxv)
else:
    print(N) N = int(input()) N int(input()) int input() input list(map(int,input().split())) for i in range(N) for i in range(N) i range(N) range N for i in range(N) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split ab = sorted([list(map(int,input().split())) for i in range(N)]) ab sorted([list(map(int,input().split())) for i in range(N)]) sorted [list(map(int,input().split())) for i in range(N)] diff = {} diff {} for i in range(N-1):
    for j in range(i+1,N):
        a = (ab[i][0]-ab[j][0],ab[i][1]-ab[j][1])
        if a not in diff:
            diff[a] = 1
        else:
            diff[a] += 1 i range(N-1) range N-1 N 1 for j in range(i+1,N):
        a = (ab[i][0]-ab[j][0],ab[i][1]-ab[j][1])
        if a not in diff:
            diff[a] = 1
        else:
            diff[a] += 1 j range(i+1,N) range i+1 i 1 N a = (ab[i][0]-ab[j][0],ab[i][1]-ab[j][1]) a (ab[i][0]-ab[j][0],ab[i][1]-ab[j][1]) ab[i][0]-ab[j][0] ab[i][0] [i] ab i 0 ab[j][0] [j] ab j 0 ab[i][1]-ab[j][1] ab[i][1] [i] ab i 1 ab[j][1] [j] ab j 1 if a not in diff:
            diff[a] = 1
        else:
            diff[a] += 1 a not in diff a diff diff[a] = 1 diff[a] diff a 1 diff[a] += 1 diff[a] diff a 1 if diff:
    maxv = max(diff.values())
    print(N-maxv)
else:
    print(N) diff maxv = max(diff.values()) maxv max(diff.values()) max diff.values() diff.values diff values print(N-maxv) print N-maxv N maxv print(N) print N maxv = max(diff.values()) max(diff.values()) maxv a = (ab[i][0]-ab[j][0],ab[i][1]-ab[j][1]) (ab[i][0]-ab[j][0],ab[i][1]-ab[j][1]) a diff = {} {} diff N = int(input()) int(input()) N ab = sorted([list(map(int,input().split())) for i in range(N)]) sorted([list(map(int,input().split())) for i in range(N)]) ab
N = int(input())
ab = sorted([list(map(int,input().split())) for i in range(N)])
diff = {}
for i in range(N-1):
    for j in range(i+1,N):
        a = (ab[i][0]-ab[j][0],ab[i][1]-ab[j][1])
        if a not in diff:
            diff[a] = 1
        else:
            diff[a] += 1
if diff:
    maxv = max(diff.values())
    print(N-maxv)
else:
    print(N)