N=int(input()) A=[tuple(map(int, input().split())) for _ in range(N)] ans=1 for i in range(N): for j in range(i+1,N): tmp=2 for k in range(j+1,N): if (A[i][0]-A[j][0])*(A[i][1]-A[k][1])==(A[i][1]-A[j][1])*(A[i][0]-A[k][0]): tmp+=1 ans = max(ans, tmp) print(ans)