N = int(input()) P = [list(map(int,input().split())) for _ in range(N)] M = 0 for i, (xi, yi) in enumerate(P): for j, (xj, yj) in enumerate(P[i + 1:]): C = 0 for xk, yk in P[i + j + 2:]: if (xk - xi) * (yj - yi) == (xj - xi) * (yk - yi): C += 1 if C > M: M = C print(M + 2)