from collections import Counter
N=int(input())
B=[tuple(map(int, input().split())) for _ in range(N)]
R=[(x[0]-y[0],x[1]-y[1]) for x in B for y in B if x!=y]
C=Counter(R).most_common(1)
print(N-C[0][1] if C else N) 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 B=[tuple(map(int, input().split())) for _ in range(N)] B [tuple(map(int, input().split())) for _ in range(N)] (x[0]-y[0],x[1]-y[1]) for x in B for y in B if x!=y for x in B for y in B if x!=y x B for y in B if x!=y y B x!=y x y if x!=y (x[0]-y[0],x[1]-y[1]) x[0]-y[0] x[0] x 0 y[0] y 0 x[1]-y[1] x[1] x 1 y[1] y 1 R=[(x[0]-y[0],x[1]-y[1]) for x in B for y in B if x!=y] R [(x[0]-y[0],x[1]-y[1]) for x in B for y in B if x!=y] C=Counter(R).most_common(1) C Counter(R).most_common(1) (R).most_common (R) Counter R most_common 1 print(N-C[0][1] if C else N) print N-C[0][1] if C else N C N-C[0][1] N C[0][1] [0] C 0 1 N B=[tuple(map(int, input().split())) for _ in range(N)] [tuple(map(int, input().split())) for _ in range(N)] B R=[(x[0]-y[0],x[1]-y[1]) for x in B for y in B if x!=y] [(x[0]-y[0],x[1]-y[1]) for x in B for y in B if x!=y] R N=int(input()) int(input()) N C=Counter(R).most_common(1) Counter(R).most_common(1) C
from collections import Counter
N=int(input())
B=[tuple(map(int, input().split())) for _ in range(N)]
R=[(x[0]-y[0],x[1]-y[1]) for x in B for y in B if x!=y]
C=Counter(R).most_common(1)
print(N-C[0][1] if C else N)
