from collections import Counter
n=int(input())
A=[list(map(int,input().split())) for i in range(n)]
Per=[(a[0]-b[0],a[1]-b[1]) for a in A for b in A if a!=b]
print(n-Counter(Per).most_common(1)[0][1] if n!=1 else 1) from collections import Counter 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 A=[list(map(int,input().split())) for i in range(n)] A [list(map(int,input().split())) for i in range(n)] (a[0]-b[0],a[1]-b[1]) for a in A for b in A if a!=b for a in A for b in A if a!=b a A for b in A if a!=b b A a!=b a b if a!=b (a[0]-b[0],a[1]-b[1]) a[0]-b[0] a[0] a 0 b[0] b 0 a[1]-b[1] a[1] a 1 b[1] b 1 Per=[(a[0]-b[0],a[1]-b[1]) for a in A for b in A if a!=b] Per [(a[0]-b[0],a[1]-b[1]) for a in A for b in A if a!=b] print(n-Counter(Per).most_common(1)[0][1] if n!=1 else 1) print n-Counter(Per).most_common(1)[0][1] if n!=1 else 1 n!=1 n 1 n-Counter(Per).most_common(1)[0][1] n Counter(Per).most_common(1)[0][1] [0] (Per).most_common(1) (Per).most_common (Per) Counter Per most_common 1 0 1 1 n=int(input()) int(input()) n A=[list(map(int,input().split())) for i in range(n)] [list(map(int,input().split())) for i in range(n)] A Per=[(a[0]-b[0],a[1]-b[1]) for a in A for b in A if a!=b] [(a[0]-b[0],a[1]-b[1]) for a in A for b in A if a!=b] Per
from collections import Counter
n=int(input())
A=[list(map(int,input().split())) for i in range(n)]
Per=[(a[0]-b[0],a[1]-b[1]) for a in A for b in A if a!=b]
print(n-Counter(Per).most_common(1)[0][1] if n!=1 else 1)