N=int(input()) A=[] for i in range(N): x,y=map(int, input().split()) A.append((x,y)) ans=0 for i in range(N-1): for j in range(i+1,N): cnt=0 x1,y1=A[i][0],A[i][1] x2,y2=A[j][0],A[j][1] if x1-x2!=0: for k in range(N): x,y=A[k][0],A[k][1] if y-y1==((y2-y1)/(x2-x1))*(x-x1): cnt+=1 else: for k in range(N): x,y=A[k][0],A[k][1] if x==x1: cnt+=1 ans=max(ans,cnt) print(ans)