N=int(input()) point=[] for _ in range(N): point.append(list(map(int,input().split()))) ans=0 for i in range(N-1): for j in range(i+1,N): #y=ax+b if (point[j][0]-point[i][0])!=0: a=(point[j][1]-point[i][1])/(point[j][0]-point[i][0]) b=point[i][1]-a*point[i][0] temp=2 for k in range(N): if k==i or k==j: continue else: if point[k][1]==a*point[k][0]+b: temp+=1 else: temp=2 for k in range(N): if k==i or k==j: continue else: if point[k][0]==point[i][0]: temp+=1 ans=max(ans,temp) print(ans)