n=int(input()) l=[[int(j) for j in input().split()]for i in range(n)] import itertools ans=0 for i,j in itertools.combinations(range(n),2): x1,y1=l[i] x2,y2=l[j] tmp=0 if x1-x2==0: for x,y in l: if x==x1: tmp+=1 ans=max(ans,tmp) continue for x,y in l: if abs((y1-y2)/(x1-x2)*(x-x1)+y1-y)<0.0001: tmp+=1 ans=max(ans,tmp) print(ans)