N=int(input()) L=[list(map(int,input().split())) for _ in range(N)] ans=0 for i in range(N): for j in range(i): Xi,Yi=L[i] Xj,Yj=L[j] cnt=0 for k in range(N): Xk,Yk=L[k] cnt+=int((Xj-Xi)*(Yk-Yi)==(Xk-Xi)*(Yj-Yi)) ans=max(ans,cnt) print(ans)