#include <cstdio>
using namespace std;
int x[700],y[700];
int main(void)
{
freopen("bomb.in","r",stdin);
freopen("bomb.out","w",stdout);
int i,j,k,n,c,maxc=0;
double temp;
scanf("%d\n",&n);
for (i=0;i<n;i++)
scanf("%d %d\n",&x[i],&y[i]);
for (i=0;i<n;i++)
for (j=i+1;j<n;j++)
{
c=2;
temp=double(y[j]-y[i])/(x[j]-x[i]);
for (k=j+1;k<n;k++)
if (temp==double(y[k]-y[j])/(x[k]-x[j])||-temp==double(y[k]-y[j])/(x[k]-x[j]))
c++;
if (c>maxc)
maxc=c;
}
printf("%d\n",maxc);
fclose(stdin);
fclose(stdout);
return(0);
}