from collections import Counter
N=int(input())
XY=[tuple(map(int, input().split())) for _ in range(N)]
PQ=[(x1-x2,y1-y2) for x1,y1 in XY for x2,y2 in XY if x1!=x2 or y1!=y2]
C=Counter(PQ)
print(N-C.most_common(1)[0][1] if N!=1 else 1) from collections import Counter 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)] (x1-x2,y1-y2) for x1,y1 in XY for x2,y2 in XY if x1!=x2 or y1!=y2 for x1,y1 in XY for x2,y2 in XY if x1!=x2 or y1!=y2 x1 y1 XY for x2,y2 in XY if x1!=x2 or y1!=y2 x2 y2 XY x1!=x2 or y1!=y2 x1!=x2 x1 x2 y1!=y2 y1 y2 if x1!=x2 or y1!=y2 (x1-x2,y1-y2) x1-x2 x1 x2 y1-y2 y1 y2 PQ=[(x1-x2,y1-y2) for x1,y1 in XY for x2,y2 in XY if x1!=x2 or y1!=y2] PQ [(x1-x2,y1-y2) for x1,y1 in XY for x2,y2 in XY if x1!=x2 or y1!=y2] C=Counter(PQ) C Counter(PQ) Counter PQ print(N-C.most_common(1)[0][1] if N!=1 else 1) print N-C.most_common(1)[0][1] if N!=1 else 1 N!=1 N 1 N-C.most_common(1)[0][1] N C.most_common(1)[0][1] [0] C.most_common(1) C.most_common C most_common 1 0 1 1 PQ=[(x1-x2,y1-y2) for x1,y1 in XY for x2,y2 in XY if x1!=x2 or y1!=y2] [(x1-x2,y1-y2) for x1,y1 in XY for x2,y2 in XY if x1!=x2 or y1!=y2] PQ XY=[tuple(map(int, input().split())) for _ in range(N)] [tuple(map(int, input().split())) for _ in range(N)] XY C=Counter(PQ) Counter(PQ) C N=int(input()) int(input()) N
from collections import Counter
N=int(input())
XY=[tuple(map(int, input().split())) for _ in range(N)]
PQ=[(x1-x2,y1-y2) for x1,y1 in XY for x2,y2 in XY if x1!=x2 or y1!=y2]
C=Counter(PQ)
print(N-C.most_common(1)[0][1] if N!=1 else 1)