#include #include #include int main() { int N; std::cin >> N; std::vector X(N), Y(N); for (int i = 0; i < N; i++) std::cin >> X[i] >> Y[i]; int ans = 0; for (int i = 0; i < N; i++) { std::map m; for (int j = i + 1; j < N; j++) m[(double)(Y[j] - Y[i]) / (X[j] - X[i])]++; for (auto p : m) ans = std::max(ans, p.second + 1); } std::cout << ans << "\n"; }