N=int(input()) XY=[list(map(int,input().split())) for i in range(N)] ans=0 for i in range(N-1): x1=XY[i][0] y1=XY[i][1] for j in range(i+1,N): x2=XY[j][0] y2=XY[j][1] memo=0 if x1==x2: for k in range(N): if XY[k][0]==x1: memo+=1 else: a=y1-y2 b=x1*y2-x2*y1 c=x1-x2 for k in range(N): if c*XY[k][1]==a*XY[k][0]+b: memo+=1 if memo>ans: ans=memo print(ans)