N = int(input()) x = [0] * N y = [0] * N for i in range(N): x[i],y[i] = map(int,input().split()) _max = 0 for i in range(N-1): for j in range(i + 1,N): ans = 0 for k in range(N): if (x[i]-x[j]) * (y[k]-y[i]) == (y[i]-y[j]) * (x[k]-x[i]): ans += 1 if ans > _max: _max = ans print(ans)