N = int(input()) XY = [tuple(map(int, input().split())) for _ in range(N)] ans = 0 for i in range(N): Xi, Yi = XY[i] for j in range(i+1, N): Xj, Yj = XY[j] ans_cand = 0 for k in range(N): Xk, Yk = XY[k] if (Yk-Yj)*(Xj-Xi)==(Yj-Yi)*(Xk-Xj): ans_cand += 1 ans = max(ans, ans_cand) print(ans)