N = int(input()) R = [list(map(int, input().split())) for i in range(N)] ans = 0 for i in range(N): xi, yi = R[i] for j in range(i + 1, N): xj, yj = R[j] cnt = 2 for k in range(j + 1, N): xk, yk = R[k] if (xk - xi) * (yj - yi) == (yk - yi) * (xj - xi): cnt += 1 ans = max(ans, cnt) print(ans)