n=int(input()) ns=[list(map(int,input().split())) for i in range(n)] ans=0 for i in range(n-1): a,b=ns[i] for j in range(i+1,n): c,d=ns[j] cnt=2 for k in range(n): if i == k or j == k: continue e,f=ns[k] if (f-b)*(c-a) == (d-b)*(e-a): cnt+=1 ans=max(ans,cnt) print(ans)