n=int(input()) xy=[] for i in range(n): x,y=map(int,input().split()) xy.append((x,y)) a=[] for i in range(n): for j in range(n): if i==j:continue x1,y1=xy[i] x2,y2=xy[j] a.append((x1,y1,x2,y2)) ans=0 for i in range(len(a)): x1=a[i][0] y1=a[i][1] x2=a[i][2] y2=a[i][3] t=0 for x,y in xy: if (x2-x1)*(y-y1)==(y2-y1)*(x-x1):t+=1 ans=max(ans,t) print(ans)